summaryrefslogtreecommitdiffstats
path: root/src/Net/ClientConnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Net/ClientConnection.h')
-rw-r--r--src/Net/ClientConnection.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Net/ClientConnection.h b/src/Net/ClientConnection.h
index e90b2db..72a0a92 100644
--- a/src/Net/ClientConnection.h
+++ b/src/Net/ClientConnection.h
@@ -43,15 +43,22 @@ class ClientConnection : public Connection {
}
public:
- ClientConnection() : connected(false), peer(0), sock(-1), session(0) {}
+ ClientConnection() : connected(false) {
+ gnutls_anon_allocate_client_credentials(&anoncred);
+ }
+
virtual ~ClientConnection() {
if(connected)
disconnect();
+
+ gnutls_anon_free_client_credentials(anoncred);
}
void connect(const IPAddress &address) throw(ConnectionException);
void disconnect();
+ virtual bool dataPending();
+
virtual bool isConnected() const {return connected;}
virtual const IPAddress* getPeer() const {return peer;}
};