diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h index 2092e1e32b..e55605561a 100644 --- a/src/network/core/tcp.h +++ b/src/network/core/tcp.h @@ -50,6 +50,12 @@ public: bool CanSendReceive(); + /** + * Whether there is something pending in the send queue. + * @return true when someting is pending in the send queue. + */ + bool HasSendQueue() { return this->packet_queue != NULL; } + NetworkTCPSocketHandler(SOCKET s = INVALID_SOCKET); ~NetworkTCPSocketHandler(); };