From 6247bdbdb4b2972ef39b0715cb318c5af9801b79 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 28 Oct 2012 21:26:57 +0000 Subject: (svn r24642) -Codechange: add helper function to see if there is anything in the send queue --- src/network/core/tcp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/network') diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h index 2092e1e32..e55605561 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(); }; -- cgit v1.2.3-54-g00ecf