31 #ifndef SOCK_MANAGER_H_ 32 # define SOCK_MANAGER_H_
SOCKET open_listeningsocket(uint16_t port)
open listening socket
Definition: sock_manager.c:57
char * receive_string(SOCKET connected_socket)
receive a string line (ending with ' ') from client, return malloc string
Definition: sock_manager.c:169
void send_stream(SOCKET connected_socket, const void *stream, OPJ_SIZE_T length)
send data stream to client
Definition: sock_manager.c:104
void * receive_stream(SOCKET connected_socket, OPJ_SIZE_T length)
receive data stream to client
Definition: sock_manager.c:120
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:142
int close_socket(SOCKET sock)
close socket
Definition: sock_manager.c:180
SOCKET accept_socket(SOCKET listening_socket)
accept a new connection to the listenning socket
Definition: sock_manager.c:96