diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-23 19:04:08 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-23 20:55:44 (GMT) |
commit | 714e831bb9ea2b14cba3c2696c12e2e13b1bb9d7 (patch) | |
tree | e752e00c5ff683ba3550fc663c19f9241c3792f6 /Slimber | |
parent | 3a0309d2d897bf4f399610e52ad439c002e16f9c (diff) | |
download | swift-714e831bb9ea2b14cba3c2696c12e2e13b1bb9d7.zip swift-714e831bb9ea2b14cba3c2696c12e2e13b1bb9d7.tar.bz2 |
Add beginning of new DNS-SD query framework.
Diffstat (limited to 'Slimber')
-rw-r--r-- | Slimber/Server.cpp | 6 | ||||
-rw-r--r-- | Slimber/Server.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Slimber/Server.cpp b/Slimber/Server.cpp index ba55403..c3c3d22 100644 --- a/Slimber/Server.cpp +++ b/Slimber/Server.cpp @@ -69,9 +69,9 @@ void Server::handleNewLinkLocalConnection(boost::shared_ptr<Connection> connecti registerLinkLocalSession(session); } -void Server::handleServiceRegistered(const DNSSDService::Service& service) { - std::cout << "Service registered " << service.name << " " << service.type << " " << service.domain << std::endl; - selfJID_ = JID(service.name); +void Server::handleServiceRegistered(const LinkLocalServiceID& service) { + std::cout << "Service registered " << service.getName() << " " << service.getType() << " " << service.getDomain() << std::endl; + selfJID_ = JID(service.getName()); } void Server::handleSessionStarted() { diff --git a/Slimber/Server.h b/Slimber/Server.h index ac80509..b40f576 100644 --- a/Slimber/Server.h +++ b/Slimber/Server.h @@ -33,7 +33,7 @@ namespace Swift { private: void handleNewClientConnection(boost::shared_ptr<Connection> c); void handleNewLinkLocalConnection(boost::shared_ptr<Connection> connection); - void handleServiceRegistered(const DNSSDService::Service& service); + void handleServiceRegistered(const LinkLocalServiceID& service); void handleSessionStarted(); void handleSessionFinished(boost::shared_ptr<ServerFromClientSession>); void handleLinkLocalSessionFinished(boost::shared_ptr<Session> session); |