diff options
author | Christian Pointner <equinox@anytun.org> | 2007-06-21 00:42:47 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2007-06-21 00:42:47 +0000 |
commit | 034fee969a22278b2d7bd93a2ad48664ebe69ac0 (patch) | |
tree | 5a307484b5b62d72da69147f1957ee993e8757fe /packetSource.cpp | |
parent | little bugfix (diff) |
first working version
lacks still some features
Diffstat (limited to 'packetSource.cpp')
-rw-r--r-- | packetSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packetSource.cpp b/packetSource.cpp index 8ef122d..a20d7bb 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(Buffer& buf, std::string addr, u_int16_t &port) { return recvFrom(buf, buf.getLength(), addr, port); } -void UDPPacketSource::send(Buffer buf, std::string addr, u_int16_t port) +void UDPPacketSource::send(Buffer& buf, std::string addr, u_int16_t port) { sendTo(buf, buf.getLength(), addr, port); } |