diff options
author | Christian Pointner <equinox@anytun.org> | 2009-03-22 23:57:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-03-22 23:57:35 +0000 |
commit | 623e15d35dffbda9f30d0d4aa7e42439723df31e (patch) | |
tree | e3487d30ec5c67a1d6cdf669fa51af5a903e127f /src/packetSource.cpp | |
parent | added gResolver to anytun-config (diff) |
added gResolver to SyncServer
some cleanup
Diffstat (limited to 'src/packetSource.cpp')
-rw-r--r-- | src/packetSource.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/packetSource.cpp b/src/packetSource.cpp index e291175..9266b57 100644 --- a/src/packetSource.cpp +++ b/src/packetSource.cpp @@ -44,11 +44,6 @@ void PacketSource::waitUntilReady() ready_sem_.down(); } -UDPPacketSource::UDPPacketSource(std::string port) : sock_(io_service_) -{ - gResolver.resolveUdp("", port, boost::bind(&UDPPacketSource::onResolve, this, _1), boost::bind(&UDPPacketSource::onError, this, _1), gOpt.getResolvAddrType()); -} - UDPPacketSource::UDPPacketSource(std::string localaddr, std::string port) : sock_(io_service_) { gResolver.resolveUdp(localaddr, port, boost::bind(&UDPPacketSource::onResolve, this, _1), boost::bind(&UDPPacketSource::onError, this, _1), gOpt.getResolvAddrType()); |