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