mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r24642) -Codechange: add helper function to see if there is anything in the send queue
This commit is contained in:
parent
9db98f3b14
commit
6247bdbdb4
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue