blob: 6cd6949c1d6032dee05d4e6f059f750dd4431290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright (c) 2012 Yoann Blein
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <Swiften/Network/BoostUDPSocketFactory.h>
#include <Swiften/Network/BoostUDPSocket.h>
namespace Swift {
BoostUDPSocketFactory::BoostUDPSocketFactory(boost::shared_ptr<boost::asio::io_service> ioService, EventLoop* eventLoop) : ioService(ioService), eventLoop(eventLoop) {
}
BoostUDPSocketFactory::~BoostUDPSocketFactory()
{
}
boost::shared_ptr<UDPSocket> BoostUDPSocketFactory::createUDPSocket() {
return BoostUDPSocket::create(ioService, eventLoop);
}
}
|