summaryrefslogtreecommitdiff
path: root/router.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-13 16:22:02 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-13 16:22:02 +0000
commitf2474da8648b95340456a2695fc2c90e043dabec (patch)
tree08e29164bde8fb4a98b2720f3dcb75732905ed87 /router.cpp
parentadded mux_type (diff)
added Synccommand / now connection updates work / sync is multi connection capable
Diffstat (limited to 'router.cpp')
-rw-r--r--router.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/router.cpp b/router.cpp
index 33cddb2..d88c67e 100644
--- a/router.cpp
+++ b/router.cpp
@@ -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;
}