Changeset - r19694:004c1f10f9da
[Not reviewed]
master
0 1 0
rubidium - 12 years ago 2012-10-28 21:26:57
rubidium@openttd.org
(svn r24642) -Codechange: add helper function to see if there is anything in the send queue
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/network/core/tcp.h
Show inline comments
 
@@ -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();
 
};
0 comments (0 inline, 0 general)