diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-29 20:18:02 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-30 18:31:58 (GMT) |
commit | b145bde2b103b0e688eef6300d34668431c5ad04 (patch) | |
tree | 4789bd165ed919e20f80bbfb658263302c8a71c7 /Slimber/CLI | |
parent | 4b809245dd6a1236dda99ab780485599434a419a (diff) | |
download | swift-contrib-b145bde2b103b0e688eef6300d34668431c5ad04.zip swift-contrib-b145bde2b103b0e688eef6300d34668431c5ad04.tar.bz2 |
Created LinkLocalPresenceManager.
Diffstat (limited to 'Slimber/CLI')
-rw-r--r-- | Slimber/CLI/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Slimber/CLI/main.cpp b/Slimber/CLI/main.cpp index 8b70625..7ebdb0f 100644 --- a/Slimber/CLI/main.cpp +++ b/Slimber/CLI/main.cpp @@ -10,6 +10,7 @@ #include "Slimber/Server.h" #include "Slimber/FileVCardCollection.h" #include "Swiften/LinkLocal/LinkLocalRoster.h" +#include "Swiften/LinkLocal/LinkLocalServiceBrowser.h" #include "Swiften/LinkLocal/DNSSD/DNSSDBrowseQuery.h" #include "Swiften/LinkLocal/DNSSD/DNSSDRegisterQuery.h" #include "Swiften/LinkLocal/DNSSD/Bonjour/BonjourQuerier.h" @@ -22,10 +23,8 @@ int main() { SimpleEventLoop eventLoop; boost::shared_ptr<BonjourQuerier> querier(new BonjourQuerier()); querier->start(); - boost::shared_ptr<DNSSDBrowseQuery> query = querier->createBrowseQuery(); - query->startBrowsing(); - boost::shared_ptr<DNSSDRegisterQuery> query2 = querier->createRegisterQuery("remko", 1234, LinkLocalServiceInfo()); - query2->registerService(); + LinkLocalServiceBrowser browser(querier); + browser.start(); /* boost::shared_ptr<DNSSDService> dnsSDService; |