From ea9fe3ef923000a7bfa4d7afc306669d5442e0fc Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 26 Jun 2008 16:39:25 +0200 Subject: ConnectionManager f?r den Kern hinzugef?gt --- src/Net/Connection.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Net/Connection.h') diff --git a/src/Net/Connection.h b/src/Net/Connection.h index 0ef3ebf..0880036 100644 --- a/src/Net/Connection.h +++ b/src/Net/Connection.h @@ -23,6 +23,7 @@ #include #include #include +#include #include "Packet.h" namespace Mad { @@ -125,6 +126,8 @@ class Connection { void disconnect(); + struct pollfd getPollfd() const; + bool send(const Packet &packet) { if(!isConnected() || isConnecting()) return false; @@ -142,7 +145,7 @@ class Connection { doSend(); } - bool sendQueueEmpty() {return transS.empty();} + bool sendQueueEmpty() const {return transS.empty();} sigc::signal signalReceive() const {return signal;} -- cgit v1.2.3