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

Method resolve

engine/source/platform/platformNet.cpp:480–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480template<class T> T ReservedSocketList<T>::resolve(NetSocket socketToResolve)
481{
482 MutexHandle h;
483 h.lock(mMutex, true);
484
485 if ((U32)socketToResolve.getHandle() >= (U32)mSocketList.size())
486 return -1;
487
488 EntryType &entry = mSocketList[socketToResolve.getHandle()];
489 return entry.used ? entry.value : -1;
490}
491
492
493// Multicast stuff

Callers 15

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

Calls 3

getHandleMethod · 0.80
lockMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected