event/ServerSocket: include cleanup

This commit is contained in:
Max Kellermann 2018-10-30 20:17:24 +01:00
parent e575392b94
commit 3ddc7a5353

View File

@ -32,25 +32,17 @@
#include "net/ToString.hxx" #include "net/ToString.hxx"
#include "event/SocketMonitor.hxx" #include "event/SocketMonitor.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "util/ScopeExit.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <string> #include <string>
#include <algorithm> #include <algorithm>
#include <string.h>
#include <unistd.h>
#include <assert.h> #include <assert.h>
#ifdef _WIN32 #ifdef HAVE_UN
#include <ws2tcpip.h> #include <sys/stat.h>
#include <winsock.h>
#else
#include <sys/socket.h>
#include <netdb.h>
#endif #endif
class ServerSocket::OneServerSocket final : private SocketMonitor { class ServerSocket::OneServerSocket final : private SocketMonitor {