diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-12-13 16:22:02 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-12-13 16:22:02 +0000 |
commit | f2474da8648b95340456a2695fc2c90e043dabec (patch) | |
tree | 08e29164bde8fb4a98b2720f3dcb75732905ed87 /router.cpp | |
parent | added mux_type (diff) |
added Synccommand / now connection updates work / sync is multi connection capable
Diffstat (limited to 'router.cpp')
-rw-r--r-- | router.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,13 +41,13 @@ Router::~Router() { } -void Router::addConnection(ConnectionParam &conn,const std::string &name) +void Router::addConnection(ConnectionParam &conn,u_int16_t mux) { - con_list_.addConnection(conn,name); + con_list_.addConnection(conn,mux); } ConnectionParam Router::getRoute() { Lock lock(mutex_); - return con_list_.getConnection(); + return con_list_.getConnection(0)->second; } |