summaryrefslogtreecommitdiff
path: root/packetSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'packetSource.cpp')
-rw-r--r--packetSource.cpp8
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);
}