summaryrefslogtreecommitdiff
path: root/packetSource.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-06-21 00:42:47 +0000
committerChristian Pointner <equinox@anytun.org>2007-06-21 00:42:47 +0000
commit034fee969a22278b2d7bd93a2ad48664ebe69ac0 (patch)
tree5a307484b5b62d72da69147f1957ee993e8757fe /packetSource.h
parentlittle bugfix (diff)
first working version
lacks still some features
Diffstat (limited to 'packetSource.h')
-rw-r--r--packetSource.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/packetSource.h b/packetSource.h
index 3cd4fb5..d2902d9 100644
--- a/packetSource.h
+++ b/packetSource.h
@@ -37,8 +37,8 @@ class PacketSource
public:
virtual ~PacketSource() {}
- 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;
+ 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;
};
class UDPPacketSource : public PacketSource, public UDPSocket
@@ -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);
- void send(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);
};