MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / resolve

Method resolve

Engine/source/platform/platformNet.cpp:483–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483template<class T> T ReservedSocketList<T>::resolve(NetSocket socketToResolve)
484{
485 MutexHandle h;
486 h.lock(mMutex, true);
487
488 if ((U32)socketToResolve.getHandle() >= (U32)mSocketList.size())
489 return -1;
490
491 EntryType &entry = mSocketList[socketToResolve.getHandle()];
492 return entry.used ? entry.value : -1;
493}
494
495static ConnectionNotifyEvent* smConnectionNotify = NULL;
496static ConnectionAcceptedEvent* smConnectionAccept = NULL;

Callers 15

processMethod · 0.45
netSocketWaitForWritableFunction · 0.45
sendtoMethod · 0.45
processMethod · 0.45
processListenSocketMethod · 0.45
closeSocketMethod · 0.45
connectMethod · 0.45
listenMethod · 0.45
acceptMethod · 0.45
bindAddressMethod · 0.45
setBufferSizeMethod · 0.45
setBroadcastMethod · 0.45

Calls 3

lockMethod · 0.45
getHandleMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected