diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-24 00:07:01 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-24 00:07:01 +0000 |
commit | 97d40fa80b08194c043a64d2352ca2cbc9be2873 (patch) | |
tree | 1819295d33262b386e2c333258bc9f6fd1c07a0b /packetSource.cpp | |
parent | - keyderivation and cipher should work now (diff) |
bugfix@ sender and receiver reset packet size at begin of loop
bugfix@ keyDerivation
key_derivation_rate
Diffstat (limited to 'packetSource.cpp')
-rw-r--r-- | packetSource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packetSource.cpp b/packetSource.cpp index 063d142..5264302 100644 --- a/packetSource.cpp +++ b/packetSource.cpp @@ -46,12 +46,12 @@ UDPPacketSource::UDPPacketSource(std::string localaddr, u_int16_t port) : UDPSoc { } -u_int32_t UDPPacketSource::recv(Buffer& buf, std::string& addr, u_int16_t &port) +u_int32_t UDPPacketSource::recv(u_int8_t* buf, u_int32_t len, std::string& addr, u_int16_t &port) { - return recvFrom(buf, buf.getLength(), addr, port); + return recvFrom(buf, len, addr, port); } -void UDPPacketSource::send(Buffer& buf, std::string addr, u_int16_t port) +void UDPPacketSource::send(u_int8_t* buf, u_int32_t len, std::string addr, u_int16_t port) { - sendTo(buf, buf.getLength(), addr, port); + sendTo(buf, len, addr, port); } |