From f2474da8648b95340456a2695fc2c90e043dabec Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 13 Dec 2007 16:22:02 +0000 Subject: added Synccommand / now connection updates work / sync is multi connection capable --- connectionList.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'connectionList.h') diff --git a/connectionList.h b/connectionList.h index e12ccff..670f077 100644 --- a/connectionList.h +++ b/connectionList.h @@ -38,21 +38,23 @@ #include "datatypes.h" #include "connectionParam.h" #include "networkAddress.h" +typedef std::map ConnectionMap; class ConnectionList { public: ConnectionList(); ~ConnectionList(); - void addConnection(ConnectionParam &conn, const std::string &name); - ConnectionParam & getConnection(); + void addConnection(ConnectionParam &conn, u_int16_t mux); + const ConnectionMap::iterator getConnection(u_int16_t mux); + const ConnectionMap::iterator getEnd(); + ConnectionParam & getOrNewConnection(u_int16_t mux); bool empty(); void clear(); private: ConnectionList(const ConnectionList &s); void operator=(const ConnectionList &s); - typedef std::map ConnectionMap; ConnectionMap connections_; Mutex mutex_; }; -- cgit v1.2.3