20 lines
321 B
C++
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();
|
|
};
|
|
|