hello-world-cpp/task_5/socket_up.h
2025-01-13 02:35:49 +10:00

25 lines
358 B
C++

#ifdef _WIN32
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <cstring>
#else
#include <sys/socket.h>
#endif
#include <iostream>
class SocketUp {
public:
#ifdef _WIN32
static SOCKET config_socket_windows();
#else
// SOCKET?
static SOCKET config_socket_unix();
#endif
};