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:
@@ -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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user