From 623e15d35dffbda9f30d0d4aa7e42439723df31e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Mar 2009 23:57:35 +0000 Subject: added gResolver to SyncServer some cleanup --- src/packetSource.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/packetSource.cpp') 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()); -- cgit v1.2.3