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.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Net/Connection.h b/src/Net/Connection.h
index 0d7e6cf..695fbb8 100644
--- a/src/Net/Connection.h
+++ b/src/Net/Connection.h
@@ -54,7 +54,7 @@ class Connection {
Packet::Data header;
- sigc::signal<void,Connection*,const Packet&> signal;
+ sigc::signal<void,const Packet&> signal;
void doHandshake();
@@ -98,7 +98,6 @@ class Connection {
gnutls_certificate_credentials_t x509_cred;
IPAddress *peer;
- bool authenticated, identified;
void handshake();
@@ -110,7 +109,7 @@ class Connection {
bool enterReceiveLoop();
public:
- Connection() : state(DISCONNECTED), peer(0), authenticated(false), identified(false) {
+ Connection() : state(DISCONNECTED), peer(0) {
transR.length = transR.transmitted = 0;
transR.data = 0;
@@ -128,12 +127,6 @@ class Connection {
return (state == DISCONNECT || state == BYE);
}
- bool isAuthenticated() const {return authenticated;}
- void setAuthenticated() {authenticated = true;}
-
- bool isIdentified() const {return identified;}
- void setIdentified() {identified = true;}
-
const gnutls_datum_t* getCertificate() {
return gnutls_certificate_get_ours(session);
}
@@ -154,7 +147,7 @@ class Connection {
bool sendQueueEmpty() const {return transS.empty();}
- sigc::signal<void,Connection*,const Packet&> signalReceive() const {return signal;}
+ sigc::signal<void,const Packet&> signalReceive() const {return signal;}
static void init() {
gnutls_global_init();