31 #ifndef SOCK_MANAGER_H_
32 # define SOCK_MANAGER_H_
SOCKET open_listeningsocket(uint16_t port)
open listening socket
Definition: sock_manager.c:55
char * receive_string(SOCKET connected_socket)
receive a string line (ending with ' ') from client, return malloc string
Definition: sock_manager.c:167
void send_stream(SOCKET connected_socket, const void *stream, OPJ_SIZE_T length)
send data stream to client
Definition: sock_manager.c:102
void * receive_stream(SOCKET connected_socket, OPJ_SIZE_T length)
receive data stream to client
Definition: sock_manager.c:118
size_t OPJ_SIZE_T
Definition: openjpeg.h:133
int SOCKET
Definition: sock_manager.h:40
OPJ_SIZE_T receive_line(SOCKET connected_socket, char *buf)
receive a string line (ending with ' ') from client
Definition: sock_manager.c:140
int close_socket(SOCKET sock)
close socket
Definition: sock_manager.c:178
SOCKET accept_socket(SOCKET listening_socket)
accept a new connection to the listenning socket
Definition: sock_manager.c:94