| 371 | } |
| 372 | |
| 373 | void NetInterface::sendConnectReject(NetConnection *conn, const char *reason) |
| 374 | { |
| 375 | if(!reason) |
| 376 | return; // if the stream is NULL, we reject silently |
| 377 | |
| 378 | BitStream *out = BitStream::getPacketStream(); |
| 379 | out->write(U8(ConnectReject)); |
| 380 | out->write(conn->getSequence()); |
| 381 | out->writeString(reason); |
| 382 | BitStream::sendPacketStream(conn->getNetAddress()); |
| 383 | } |
| 384 | |
| 385 | void NetInterface::handleConnectReject(const NetAddress *address, BitStream *stream) |
| 386 | { |
nothing calls this directly
no test coverage detected