1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

(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

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