diff options
Diffstat (limited to 'Slimber')
-rw-r--r-- | Slimber/MainController.cpp | 6 | ||||
-rw-r--r-- | Slimber/Server.cpp | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/Slimber/MainController.cpp b/Slimber/MainController.cpp index 9cd8c4d..baf032c 100644 --- a/Slimber/MainController.cpp +++ b/Slimber/MainController.cpp @@ -80,7 +80,11 @@ void MainController::handleSelfConnected(bool b) { void MainController::handleServicesChanged() { std::vector<String> names; foreach(const LinkLocalService& service, linkLocalServiceBrowser->getServices()) { - names.push_back(service.getDescription()); + String description = service.getDescription(); + if (description != service.getName()) { + description += " (" + service.getName() + ")"; + } + names.push_back(description); } menuletController->setUserNames(names); } diff --git a/Slimber/Server.cpp b/Slimber/Server.cpp index a944ab9..e07fb41 100644 --- a/Slimber/Server.cpp +++ b/Slimber/Server.cpp @@ -146,8 +146,8 @@ void Server::handleNewClientConnection(boost::shared_ptr<Connection> connection) serverFromClientSession->onSessionFinished.connect( boost::bind(&Server::handleSessionFinished, this, serverFromClientSession)); - tracers.push_back(boost::shared_ptr<SessionTracer>( - new SessionTracer(serverFromClientSession))); + //tracers.push_back(boost::shared_ptr<SessionTracer>( + // new SessionTracer(serverFromClientSession))); serverFromClientSession->startSession(); } @@ -275,7 +275,7 @@ void Server::handleNewLinkLocalConnection(boost::shared_ptr<Connection> connecti } void Server::handleLinkLocalSessionFinished(boost::shared_ptr<Session> session) { - std::cout << "Link local session from " << session->getRemoteJID() << " ended" << std::endl; + //std::cout << "Link local session from " << session->getRemoteJID() << " ended" << std::endl; linkLocalSessions.erase( std::remove(linkLocalSessions.begin(), linkLocalSessions.end(), session), linkLocalSessions.end()); @@ -316,7 +316,7 @@ void Server::registerLinkLocalSession(boost::shared_ptr<Session> session) { session->onElementReceived.connect( boost::bind(&Server::handleLinkLocalElementReceived, this, _1, session)); linkLocalSessions.push_back(session); - tracers.push_back(boost::shared_ptr<SessionTracer>(new SessionTracer(session))); + //tracers.push_back(boost::shared_ptr<SessionTracer>(new SessionTracer(session))); session->startSession(); } |