From fcab8098d6a9a385e0e5edfb26f4abf615da77ca Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 10 Oct 2008 15:04:28 +0200 Subject: FdManager hinzugef?gt und Verbindungsklassen angepasst --- src/Net/ClientConnection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Net/ClientConnection.cpp') diff --git a/src/Net/ClientConnection.cpp b/src/Net/ClientConnection.cpp index 5c602e1..25673fd 100644 --- a/src/Net/ClientConnection.cpp +++ b/src/Net/ClientConnection.cpp @@ -18,7 +18,9 @@ */ #include "ClientConnection.h" +#include "FdManager.h" #include "IPAddress.h" + #include #include #include @@ -96,6 +98,8 @@ void ClientConnection::connect(const IPAddress &address, bool daemon0) throw(Com gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred); gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t)sock); + FdManager::getFdManager()->registerFd(sock, sigc::mem_fun(this, &Connection::sendReceive)); + handshake(); } -- cgit v1.2.3