net/SocketDescriptor: decouple from FileDescriptor on Windows

On Windows, a socket is not a file descriptor; it is a different beast
(and anyway, Windows doesn't have file descriptors).
This commit is contained in:
Max Kellermann
2023-03-29 09:52:37 +02:00
parent 7a5f485cf8
commit 53ec02d5e9
3 changed files with 67 additions and 12 deletions

View File

@@ -8,7 +8,6 @@
#include "IPv6Address.hxx"
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>