MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / handleDisconnect

Method handleDisconnect

Engine/source/sim/netInterface.cpp:400–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void NetInterface::handleDisconnect(const NetAddress *address, BitStream *stream)
401{
402 NetConnection *conn = NetConnection::lookup(address);
403 if(!conn)
404 return;
405
406 U32 connectSequence;
407 char reason[256];
408
409 stream->read(&connectSequence);
410 stream->readString(reason);
411
412 if(conn->getSequence() != connectSequence)
413 return;
414
415 conn->onDisconnect(reason);
416 conn->deleteObject();
417}
418
419void NetInterface::handleInfoPacket(const NetAddress *address, U8 packetType, BitStream *stream)
420{

Callers

nothing calls this directly

Calls 5

readMethod · 0.45
readStringMethod · 0.45
getSequenceMethod · 0.45
onDisconnectMethod · 0.45
deleteObjectMethod · 0.45

Tested by

no test coverage detected