summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/core/tcp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h
index 2092e1e32..e55605561 100644
--- a/src/network/core/tcp.h
+++ b/src/network/core/tcp.h
@@ -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();
};