hello-world-cpp/task_5/socket_handler.h
2025-01-13 04:58:58 +10:00

20 lines
321 B
C++

#ifdef _WIN32
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <cstring>
#else
#include <sys/socket.h>
#endif
#include <iostream>
class SocketHandler {
public:
static int working_with_client_windows(SOCKET listenSocket);
static int working_with_client_unix();
};