summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-21 11:24:26 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-21 11:30:57 (GMT)
commit052f685338462a8c0c6d9785864e7549290d7037 (patch)
treef076b9981c62dc6913badf675c22caf6cbfcd874 /Slimber/Server.cpp
parent06a69020da6ffb527bb2a31f1da2158df2a4d3de (diff)
downloadswift-052f685338462a8c0c6d9785864e7549290d7037.zip
swift-052f685338462a8c0c6d9785864e7549290d7037.tar.bz2
Show list of connected users.
Diffstat (limited to 'Slimber/Server.cpp')
-rw-r--r--Slimber/Server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Slimber/Server.cpp b/Slimber/Server.cpp
index 1922351..53c02a0 100644
--- a/Slimber/Server.cpp
+++ b/Slimber/Server.cpp
@@ -17,11 +17,12 @@
namespace Swift {
-Server::Server(int clientConnectionPort, int linkLocalConnectionPort, boost::shared_ptr<DNSSDService> dnsSDService) :
+Server::Server(int clientConnectionPort, int linkLocalConnectionPort, boost::shared_ptr<LinkLocalRoster> linkLocalRoster, boost::shared_ptr<DNSSDService> dnsSDService) :
dnsSDServiceRegistered_(false),
rosterRequested_(false),
clientConnectionPort_(clientConnectionPort),
linkLocalConnectionPort_(linkLocalConnectionPort),
+ linkLocalRoster_(linkLocalRoster),
dnsSDService_(dnsSDService) {
serverFromClientConnectionServer_ =
boost::shared_ptr<BoostConnectionServer>(new BoostConnectionServer(
@@ -39,8 +40,6 @@ Server::Server(int clientConnectionPort, int linkLocalConnectionPort, boost::sha
dnsSDService_->onServiceRegistered.connect
(boost::bind(&Server::handleServiceRegistered, this, _1));
- linkLocalRoster_ = boost::shared_ptr<LinkLocalRoster>(
- new LinkLocalRoster(dnsSDService_));
linkLocalRoster_->onRosterChanged.connect(
boost::bind(&Server::handleRosterChanged, this, _1));
linkLocalRoster_->onPresenceChanged.connect(