4 #ifdef _WIN32 /* Windows */
6 typedef SOCKET socket_t
;
9 #define INVALID_SOCKET -1
12 void init_network_context (void);
13 void terminate_network_context (void);
15 socket_t
open_listening_socket (int port
);
16 socket_t
accept_incoming_connection (socket_t sock
);
18 void close_socket (socket_t sock
);
20 int receive_data (socket_t sock
, unsigned char **pdata
);
21 int send_data (socket_t sock
, unsigned char *data
, int len
);
23 #endif /* __SERVER_H__ */
25 /* vim: set ts=4 sw=4 et: */