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