Commit 84e28938 authored by aligungr's avatar aligungr

IPv6 support

parent 60936988
...@@ -18,9 +18,8 @@ UdpServer::UdpServer() : sockets{Socket::CreateUdp4(), Socket::CreateUdp6()} ...@@ -18,9 +18,8 @@ UdpServer::UdpServer() : sockets{Socket::CreateUdp4(), Socket::CreateUdp6()}
{ {
} }
UdpServer::UdpServer(const std::string &address, uint16_t port) : sockets{} UdpServer::UdpServer(const std::string &address, uint16_t port) : sockets{Socket::CreateAndBindUdp({address, port})}
{ {
sockets.push_back(Socket::CreateAndBindUdp({address, port}));
} }
int UdpServer::Receive(uint8_t *buffer, size_t bufferSize, int timeoutMs, InetAddress &outPeerAddress) const int UdpServer::Receive(uint8_t *buffer, size_t bufferSize, int timeoutMs, InetAddress &outPeerAddress) 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