hello-world-cpp/task_5/socket_up.h

21 lines
297 B
C
Raw Normal View History

2025-01-13 02:35:49 +10:00
#ifdef _WIN32
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <cstring>
#else
#include <sys/socket.h>
#endif
#include <iostream>
class SocketUp {
public:
static SOCKET config_socket_windows();
2025-01-13 04:58:58 +10:00
static int config_socket_unix();
2025-01-13 02:35:49 +10:00
};