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

Method handleConnectReject

Engine/source/sim/netInterface.cpp:386–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected