summaryrefslogtreecommitdiffstats
path: root/src/Net/Connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Net/Connection.h')
-rw-r--r--src/Net/Connection.h5
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;}