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

Method findPendingConnection

Engine/source/sim/netInterface.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77NetConnection *NetInterface::findPendingConnection(const NetAddress *address, U32 connectSequence)
78{
79 for(U32 i = 0; i < mPendingConnections.size(); i++)
80 if(Net::compareAddresses(address, mPendingConnections[i]->getNetAddress()) &&
81 connectSequence == mPendingConnections[i]->getSequence())
82 return mPendingConnections[i];
83 return NULL;
84}
85
86void NetInterface::processPacketReceiveEvent(NetAddress srcAddress, RawData packetData)
87{

Callers

nothing calls this directly

Calls 3

getNetAddressMethod · 0.80
sizeMethod · 0.45
getSequenceMethod · 0.45

Tested by

no test coverage detected