| 460 | } |
| 461 | |
| 462 | void NetInterface::sendDisconnectPacket(NetConnection *conn, const char *reason) |
| 463 | { |
| 464 | Con::printf("Issuing Disconnect packet."); |
| 465 | |
| 466 | // send a disconnect packet... |
| 467 | U32 connectSequence = conn->getSequence(); |
| 468 | |
| 469 | BitStream *out = BitStream::getPacketStream(); |
| 470 | out->write(U8(Disconnect)); |
| 471 | out->write(connectSequence); |
| 472 | out->writeString(reason); |
| 473 | |
| 474 | BitStream::sendPacketStream(conn->getNetAddress()); |
| 475 | } |
| 476 | |
| 477 | void NetInterface::checkTimeouts() |
| 478 | { |
nothing calls this directly
no test coverage detected