From 082dac7a8cb39ec1b005680680c4f3e1e8ddc256 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 14 Sep 2008 23:16:58 +0200 Subject: Verwende statische Instanzen von ConfigManager, ConnectionManager und RequestManager (Singleton) --- src/Net/Connection.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Net/Connection.h') diff --git a/src/Net/Connection.h b/src/Net/Connection.h index 58e7291..953ccc8 100644 --- a/src/Net/Connection.h +++ b/src/Net/Connection.h @@ -20,11 +20,13 @@ #ifndef MAD_NET_CONNECTION_H_ #define MAD_NET_CONNECTION_H_ +#include "Packet.h" + #include +#include #include #include #include -#include "Packet.h" namespace Mad { namespace Net { @@ -55,6 +57,7 @@ class Connection { sigc::signal signal; bool authenticated; + std::string name; void doHandshake(); @@ -152,6 +155,9 @@ class Connection { sigc::signal signalReceive() const {return signal;} + std::string getName() const {return name;} + void setName(const std::string& name0) {name = name0;} + static void init() { gnutls_global_init(); } -- cgit v1.2.3