Commit 2fe83f56 authored by aligungr's avatar aligungr

IPv6 support

parent eaea0f45
......@@ -25,7 +25,7 @@ UdpServer::UdpServer(const std::string &address, uint16_t port) : sockets{}
sockets.push_back(Socket::CreateAndBindUdp({address, port}));
}
int UdpServer::Receive(uint8_t *buffer, size_t bufferSize, int timeoutMs, InetAddress &outPeerAddress)
int UdpServer::Receive(uint8_t *buffer, size_t bufferSize, int timeoutMs, InetAddress &outPeerAddress) const
{
// Choose at random a ready socket for receiving data
std::vector<Socket> ws;
......
......@@ -26,7 +26,7 @@ class UdpServer
UdpServer(const std::string &address, uint16_t port);
~UdpServer();
int Receive(uint8_t *buffer, size_t bufferSize, int timeoutMs, InetAddress &outPeerAddress);
int Receive(uint8_t *buffer, size_t bufferSize, int timeoutMs, InetAddress &outPeerAddress) const;
void Send(const InetAddress &address, const uint8_t *buffer, size_t bufferSize) const;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment