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

Method remove

Engine/source/platform/platformNet.cpp:383–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383template<class T> void ReservedSocketList<T>::remove(NetSocket socketToRemove, bool doLock)
384{
385 MutexHandle handle;
386 if (doLock)
387 {
388 handle.lock(mMutex, true);
389 }
390
391 if ((U32)socketToRemove.getHandle() >= (U32)mSocketList.size())
392 return;
393
394 mSocketList[socketToRemove.getHandle()] = EntryType();
395}
396
397template<class T> T ReservedSocketList<T>::activate(NetSocket socketToActivate, int family, bool useUDP, bool clearOnFail)
398{

Callers 7

onRemoveMethod · 0.45
~PostEffectManagerMethod · 0.45
openConnectToMethod · 0.45
closeSocketMethod · 0.45
TESTFunction · 0.45
makeRequestMethod · 0.45
~OculusVRDeviceMethod · 0.45

Calls 4

EntryTypeClass · 0.85
lockMethod · 0.45
getHandleMethod · 0.45
sizeMethod · 0.45

Tested by 2

TESTFunction · 0.36
makeRequestMethod · 0.36