blob: e777e0df2cdf96108db822c0c95d443550538efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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));
}
|