(svn r24642) -Codechange: add helper function to see if there is anything in the send queue

This commit is contained in:
rubidium 2012-10-28 21:26:57 +00:00
parent 9db98f3b14
commit 6247bdbdb4
1 changed files with 6 additions and 0 deletions

View File

@ -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();
};