summaryrefslogtreecommitdiff
path: root/src/packetSource.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-22 23:57:35 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-22 23:57:35 +0000
commit623e15d35dffbda9f30d0d4aa7e42439723df31e (patch)
treee3487d30ec5c67a1d6cdf669fa51af5a903e127f /src/packetSource.cpp
parentadded gResolver to anytun-config (diff)
added gResolver to SyncServer
some cleanup
Diffstat (limited to 'src/packetSource.cpp')
-rw-r--r--src/packetSource.cpp5
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());