#include #include #include #include #ifdef _WIN32 #include #else #include /* definition of inet_ntoa */ #include #include #include /* definition of gethostbyname */ #include /* definition of struct sockaddr_in */ #include #include #include #include /* definition of close */ #endif int create_socket_server(int port); bool socket_cleanup(); int socket_accept(int server_fd); bool socket_set_non_blocking(int fd); int fd; int sfd;