Commit 60936988 authored by aligungr's avatar aligungr

IPv6 support

parent 12de88b6
......@@ -138,16 +138,6 @@ Socket Socket::CreateUdp6()
return {AF_INET6, SOCK_DGRAM, IPPROTO_UDP};
}
Socket Socket::CreateTcp4()
{
return {AF_INET, SOCK_STREAM, IPPROTO_TCP};
}
Socket Socket::CreateTcp6()
{
return {AF_INET6, SOCK_STREAM, IPPROTO_TCP};
}
Socket::Socket() : fd(-1), domain(0)
{
}
......
......@@ -69,8 +69,6 @@ class Socket
static Socket CreateAndBindTcp(const InetAddress &address);
static Socket CreateUdp4();
static Socket CreateUdp6();
static Socket CreateTcp4();
static Socket CreateTcp6();
static bool Select(const std::vector<Socket> &inReadSockets, const std::vector<Socket> &inWriteSockets,
std::vector<Socket> &outReadSockets, std::vector<Socket> &outWriteSockets, int timeout = 0);
......
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