diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-17 22:56:16 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-17 23:04:13 (GMT) |
commit | 633c82407e47ec2ba7a92cef9c5b30a24a93fc68 (patch) | |
tree | 5197e2565926523a7e8a882473c92457299895b9 /Nim | |
parent | de745f71cff330f37637c73d44c30acfb6f70a93 (diff) | |
download | swift-633c82407e47ec2ba7a92cef9c5b30a24a93fc68.zip swift-633c82407e47ec2ba7a92cef9c5b30a24a93fc68.tar.bz2 |
Resolve LinkLocal services.
Diffstat (limited to 'Nim')
-rw-r--r-- | Nim/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Nim/main.cpp b/Nim/main.cpp index 7c7105e..390bc6c 100644 --- a/Nim/main.cpp +++ b/Nim/main.cpp @@ -67,11 +67,11 @@ class Server { dnsSDService_->onServiceRegistered.connect(boost::bind(&Server::handleServiceRegistered, this, _1)); LinkLocalServiceInfo info; info.setFirstName("Remko"); - info.setLastName("Tron\xc3\xe7on"); + info.setLastName("Tron\xc3\xa7on"); info.setEMail("email@example.com"); info.setJID(JID("jid@example.com")); info.setMessage("I'm not Here"); - info.setNick("remko"); + info.setNick("Remko"); info.setStatus(LinkLocalServiceInfo::Away); info.setPort(linkLocalConnectionPort_); dnsSDService_->registerService(session->getJID().toBare().toString(), linkLocalConnectionPort_, info); @@ -85,6 +85,7 @@ class Server { void handleSessionFinished(boost::shared_ptr<ServerFromClientSession> session) { serverFromClientSessions_.erase(std::remove(serverFromClientSessions_.begin(), serverFromClientSessions_.end(), session), serverFromClientSessions_.end()); if (serverFromClientSessions_.empty()) { + std::cout << "Service unregistered" << std::endl; dnsSDServiceRegistered_ = false; dnsSDService_->unregisterService(); } |