17 lines
299 B
C
17 lines
299 B
C
#ifdef _WIN32
|
|
#include <WinSock2.h>
|
|
#include <WS2tcpip.h>
|
|
#include <BaseTsd.h>
|
|
typedef SSIZE_T ssize_t;
|
|
#else
|
|
#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
#include <sys/socket.h>
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
void init_sockets(void);
|
|
|
|
void close_socket(int socket);
|
|
|