| 384 | } |
| 385 | |
| 386 | void 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 | |
| 401 | void NetInterface::handleDisconnect(const NetAddress *address, BitStream *stream) |
| 402 | { |
nothing calls this directly
no test coverage detected