From 97d40fa80b08194c043a64d2352ca2cbc9be2873 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 24 Feb 2008 00:07:01 +0000 Subject: bugfix@ sender and receiver reset packet size at begin of loop bugfix@ keyDerivation key_derivation_rate --- packetSource.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packetSource.h') diff --git a/packetSource.h b/packetSource.h index a085b04..81abef8 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(u_int8_t* buf, u_int32_t len, std::string& addr, u_int16_t &port) = 0; + virtual void send(u_int8_t* buf, u_int32_t len, 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(u_int8_t* buf, u_int32_t len, std::string& addr, u_int16_t &port); + void send(u_int8_t* buf, u_int32_t len, std::string addr, u_int16_t port); }; -- cgit v1.2.3