From ca78a99ef24f205880bb78ce8d6091be6c27bb1d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 21 Jun 2007 17:32:14 +0000 Subject: added remote host auto detection --- packetSource.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packetSource.h') diff --git a/packetSource.h b/packetSource.h index d2902d9..a085b04 100644 --- a/packetSource.h +++ b/packetSource.h @@ -37,7 +37,7 @@ class PacketSource public: virtual ~PacketSource() {} - virtual u_int32_t recv(Buffer& buf, std::string addr, u_int16_t &port) = 0; + virtual u_int32_t recv(Buffer& buf, std::string& addr, u_int16_t &port) = 0; virtual void send(Buffer& buf, std::string addr, u_int16_t port) = 0; }; @@ -48,7 +48,7 @@ public: UDPPacketSource(u_int16_t port); UDPPacketSource(std::string localaddr, u_int16_t port); - u_int32_t recv(Buffer& buf, std::string addr, u_int16_t &port); + u_int32_t recv(Buffer& buf, std::string& addr, u_int16_t &port); void send(Buffer& buf, std::string addr, u_int16_t port); }; -- cgit v1.2.3