4#pragma comment(lib, "ws2_32.lib")
5#define CLOSESOCKET closesocket
10#include <netinet/in.h>
14#define CLOSESOCKET close
Header file for socket client operations.
Network utility functions and structures for socket communication.
Header file for socket server functions.
Structure to handle messages.
Definition socket.h:83
int lifespan
Definition socket.h:86
void ** data
Definition socket.h:87
char * msg
Definition socket.h:84
int(* callback)(int msglen, char *msg, void *p, void **data)
Definition socket.h:85
Structure to represent a network peer.
Definition socket.h:64
char * incoming_buffer
Definition socket.h:67
int ping
Definition socket.h:68
int socket
Definition socket.h:65
struct socket_request_listener listener
Definition socket.h:66
struct message_handler ** handlers
Definition socket.h:69
int handler_count
Definition socket.h:70
Structure to hold socket request listener information.
Definition socket.h:31
fd_set readfds
Definition socket.h:32
struct timeval timeout
Definition socket.h:33