summaryrefslogtreecommitdiff
path: root/packetSource.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-06-21 17:32:14 +0000
committerChristian Pointner <equinox@anytun.org>2007-06-21 17:32:14 +0000
commitca78a99ef24f205880bb78ce8d6091be6c27bb1d (patch)
treec4d53dc692a814c37b8c791af49167f514839894 /packetSource.h
parentadded options parser (diff)
added remote host auto detection
Diffstat (limited to 'packetSource.h')
-rw-r--r--packetSource.h4
1 files changed, 2 insertions, 2 deletions
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);
};