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