summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-20 23:20:08 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-20 23:28:53 (GMT)
commit1642d13e5e8d593a36ef1945387794e0d13247be (patch)
treedae6568c7b3d67ff374ddbeea4e99f6a588aa386 /Slimber/Cocoa/main.mm
parentcc03d5aab20bde58d700b329f5fa7388698d9e68 (diff)
downloadswift-contrib-1642d13e5e8d593a36ef1945387794e0d13247be.zip
swift-contrib-1642d13e5e8d593a36ef1945387794e0d13247be.tar.bz2
Added Cocoa event loop.
Diffstat (limited to 'Slimber/Cocoa/main.mm')
-rw-r--r--Slimber/Cocoa/main.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/Slimber/Cocoa/main.mm b/Slimber/Cocoa/main.mm
index b7266b5..e777e0d 100644
--- a/Slimber/Cocoa/main.mm
+++ b/Slimber/Cocoa/main.mm
@@ -1,5 +1,19 @@
#include <Cocoa/Cocoa.h>
+#include <string>
+#include <boost/bind.hpp>
+
+#include "Swiften/LinkLocal/AppleDNSSDService.h"
+#include "Swiften/EventLoop/Cocoa/CocoaEventLoop.h"
+#include "Slimber/Server.h"
+
+using namespace Swift;
int main(int argc, char *argv[]) {
+ CocoaEventLoop eventLoop;
+
+ boost::shared_ptr<DNSSDService> dnsSDService=
+ boost::shared_ptr<AppleDNSSDService>(new AppleDNSSDService());
+ Server server(5222, 5562, dnsSDService);
+
return NSApplicationMain(argc, const_cast<const char **>(argv));
}