net/SocketDescriptor: socketpair() is unavailable on Windows

This commit is contained in:
Max Kellermann
2017-08-10 13:18:59 +02:00
parent b180604422
commit 73b15c1bee
3 changed files with 8 additions and 0 deletions

View File

@@ -125,10 +125,12 @@ public:
*/
bool CreateNonBlock(int domain, int type, int protocol);
#ifndef _WIN32
static bool CreateSocketPair(int domain, int type, int protocol,
SocketDescriptor &a, SocketDescriptor &b);
static bool CreateSocketPairNonBlock(int domain, int type, int protocol,
SocketDescriptor &a, SocketDescriptor &b);
#endif
int GetError();