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

Method handleConnectReject

Engine/source/sim/netInterface.cpp:385–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void NetInterface::handleConnectReject(const NetAddress *address, BitStream *stream)
386{
387 U32 connectSequence;
388 stream->read(&connectSequence);
389 NetConnection *conn = findPendingConnection(address, connectSequence);
390 if(!conn || (conn->getConnectionState() != NetConnection::AwaitingChallengeResponse &&
391 conn->getConnectionState() != NetConnection::AwaitingConnectResponse))
392 return;
393 removePendingConnection(conn);
394 char reason[256];
395 stream->readString(reason);
396 conn->onConnectionRejected(reason);
397 conn->deleteObject();
398}
399
400void NetInterface::handleDisconnect(const NetAddress *address, BitStream *stream)
401{

Callers

nothing calls this directly

Calls 5

getConnectionStateMethod · 0.80
readMethod · 0.45
readStringMethod · 0.45
onConnectionRejectedMethod · 0.45
deleteObjectMethod · 0.45

Tested by

no test coverage detected