21 lines
297 B
C++
21 lines
297 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:
|
|
|
|
static SOCKET config_socket_windows();
|
|
static int config_socket_unix();
|
|
};
|
|
|