summaryrefslogtreecommitdiff
path: root/router.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-12-10 19:33:27 +0000
committerChristian Pointner <equinox@anytun.org>2007-12-10 19:33:27 +0000
commitc31f7578c50c4b80d5e24c67b80d74fea2fc762f (patch)
tree89089900db4cd8d3ff6bbe986005abc1ec8c0f13 /router.cpp
parentadded synclistensocket (diff)
some cleanups
Diffstat (limited to 'router.cpp')
-rw-r--r--router.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/router.cpp b/router.cpp
index 98cdce4..33cddb2 100644
--- a/router.cpp
+++ b/router.cpp
@@ -33,7 +33,7 @@
#include "router.h"
-Router::Router()
+Router::Router(ConnectionList& cl) : con_list_(cl)
{
}
@@ -49,5 +49,5 @@ void Router::addConnection(ConnectionParam &conn,const std::string &name)
ConnectionParam Router::getRoute()
{
Lock lock(mutex_);
-
+ return con_list_.getConnection();
}