net/SocketDescriptor: socketpair() is unavailable on Windows
This commit is contained in:
@@ -131,6 +131,8 @@ SocketDescriptor::CreateNonBlock(int domain, int type, int protocol)
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
bool
|
||||
SocketDescriptor::CreateSocketPair(int domain, int type, int protocol,
|
||||
SocketDescriptor &a, SocketDescriptor &b)
|
||||
@@ -168,6 +170,8 @@ SocketDescriptor::CreateSocketPairNonBlock(int domain, int type, int protocol,
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int
|
||||
SocketDescriptor::GetError()
|
||||
{
|
||||
|
Reference in New Issue
Block a user