diff options
Diffstat (limited to 'packetSource.h')
-rw-r--r-- | packetSource.h | 4 |
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); }; |