diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-06-26 16:39:25 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-06-26 16:39:25 +0200 |
commit | ea9fe3ef923000a7bfa4d7afc306669d5442e0fc (patch) | |
tree | fc549e40acbee781282478fc9c8e351507e99a9f /src/Net/Connection.h | |
parent | 91bdac7f768e538a2e25b04347b747b1902e3159 (diff) | |
download | mad-ea9fe3ef923000a7bfa4d7afc306669d5442e0fc.tar mad-ea9fe3ef923000a7bfa4d7afc306669d5442e0fc.zip |
ConnectionManager f?r den Kern hinzugef?gt
Diffstat (limited to 'src/Net/Connection.h')
-rw-r--r-- | src/Net/Connection.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <queue> #include <gnutls/gnutls.h> #include <sigc++/signal.h> +#include <poll.h> #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<void,const Connection*,const Packet&> signalReceive() const {return signal;} |