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

Method resolve

Engine/source/platform/platformNet.cpp:436–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436template<class T> T ReservedSocketList<T>::resolve(NetSocket socketToResolve)
437{
438 MutexHandle h;
439 h.lock(mMutex, true);
440
441 if ((U32)socketToResolve.getHandle() >= (U32)mSocketList.size())
442 return -1;
443
444 EntryType &entry = mSocketList[socketToResolve.getHandle()];
445 return entry.used ? entry.value : -1;
446}
447
448ConnectionNotifyEvent* Net::smConnectionNotify = NULL;
449ConnectionAcceptedEvent* Net::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