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

Method netAddressTableRemove

Engine/source/sim/netConnection.cpp:179–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void NetConnection::netAddressTableRemove()
180{
181 U32 hashIndex = HashNetAddress(&mNetAddress);
182 NetConnection **walk = &mHashTable[hashIndex];
183 while(*walk)
184 {
185 if(*walk == this)
186 {
187 *walk = mNextTableHash;
188 mNextTableHash = NULL;
189 return;
190 }
191 walk = &((*walk)->mNextTableHash);
192 }
193}
194
195void NetConnection::setNetAddress(const NetAddress *addr)
196{

Callers

nothing calls this directly

Calls 1

HashNetAddressFunction · 0.85

Tested by

no test coverage detected