diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-06-11 23:11:25 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-06-11 23:11:25 +0200 |
commit | 99ec36989631dd116524a5fab03f1c1977870752 (patch) | |
tree | 073e2e8e09daf6d304afdf11ae727a69ecfa2f20 /src/Net/Connection.h | |
parent | cc0d762d1b58fb507903e1f390af76e6e8e44dd5 (diff) | |
download | mad-99ec36989631dd116524a5fab03f1c1977870752.tar mad-99ec36989631dd116524a5fab03f1c1977870752.zip |
Einfache TLS-Client-Verbindung implementiert
Diffstat (limited to 'src/Net/Connection.h')
-rw-r--r-- | src/Net/Connection.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/Net/Connection.h b/src/Net/Connection.h index a40407c..c8b45c6 100644 --- a/src/Net/Connection.h +++ b/src/Net/Connection.h @@ -20,16 +20,30 @@ #ifndef MAD_NET_CONNECTION_H_ #define MAD_NET_CONNECTION_H_ +#include <gnutls/gnutls.h> + namespace Mad { namespace Net { +class IPAddress; + class Connection { public: - Connection(); - virtual ~Connection(); + virtual ~Connection() {} + + virtual bool isConnected() const = 0; + virtual const IPAddress* getPeer() const = 0; + + static void init() { + gnutls_global_init(); + } + + static void deinit() { + gnutls_global_deinit(); + } }; } } -#endif /*CONNECTION_H_*/ +#endif /*MAD_NET_CONNECTION_H_*/ |