mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Preliminary IPV6 Support
This commit is contained in:
parent
1a851f167d
commit
704577e051
22 changed files with 1712 additions and 592 deletions
|
|
@ -157,7 +157,7 @@ bool NetConnection::mFilesWereDownloaded = false;
|
|||
|
||||
static inline U32 HashNetAddress(const NetAddress *addr)
|
||||
{
|
||||
return *((U32 *)addr->netNum) % NetConnection::HashTableSize;
|
||||
return addr->getHash() % NetConnection::HashTableSize;
|
||||
}
|
||||
|
||||
NetConnection *NetConnection::lookup(const NetAddress *addr)
|
||||
|
|
@ -1421,7 +1421,7 @@ DefineEngineMethod( NetConnection, connect, void, (const char* remoteAddress),,
|
|||
)
|
||||
{
|
||||
NetAddress addr;
|
||||
if(!Net::stringToAddress(remoteAddress, &addr))
|
||||
if (Net::stringToAddress(remoteAddress, &addr) != Net::NoError)
|
||||
{
|
||||
Con::errorf("NetConnection::connect: invalid address - %s", remoteAddress);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue