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