Go to the documentation of this file.
31 #ifndef AUXTRANS_MANAGER_H_
32 # define AUXTRANS_MANAGER_H_
void send_stream(SOCKET connected_socket, const void *stream, OPJ_SIZE_T length)
send data stream to client
Definition: sock_manager.c:104
auxiliary transport setting parameters
Definition: auxtrans_manager.h:38
void send_responsedata_on_aux(OPJ_BOOL istcp, auxtrans_param_t auxtrans, const char cid[], void *data, OPJ_SIZE_T length, OPJ_SIZE_T maxlenPerFrame)
Send response data on aux transport.
Definition: auxtrans_manager.c:109
void * receive_stream(SOCKET connected_socket, OPJ_SIZE_T length)
receive data stream to client
Definition: sock_manager.c:120
unsigned char * data
Definition: auxtrans_manager.c:87
struct aux_response_param aux_response_param_t
aux_response_param_t * gene_auxresponse(OPJ_BOOL istcp, auxtrans_param_t auxtrans, const char cid[], void *data, OPJ_SIZE_T datalen, OPJ_SIZE_T maxlenPerFrame)
Definition: auxtrans_manager.c:149
void delete_auxresponse(aux_response_param_t **auxresponse)
Definition: auxtrans_manager.c:167
#define FCGI_stderr
Definition: auxtrans_manager.c:47
Definition: auxtrans_manager.c:85
void * aux_streaming(void *arg)
Definition: auxtrans_manager.c:189
OPJ_SIZE_T datalen
Definition: auxtrans_manager.c:88
int SOCKET
Definition: sock_manager.h:40
int OPJ_BOOL
Definition: openjpeg.h:116
size_t OPJ_SIZE_T
Definition: openjpeg.h:139
auxtrans_param_t init_aux_transport(int tcp_auxport, int udp_auxport)
Initialize auxiliary transport server of JPIP server.
Definition: auxtrans_manager.c:51
auxtrans_param_t init_aux_transport(int tcp_auxport, int udp_auxport)
Initialize auxiliary transport server of JPIP server.
Definition: auxtrans_manager.c:51
SOCKET open_listeningsocket(uint16_t port)
open listening socket
Definition: sock_manager.c:57
OPJ_SIZE_T maxlenPerFrame
Definition: auxtrans_manager.c:89
struct auxtrans_param auxtrans_param_t
auxiliary transport setting parameters
#define OPJ_TRUE
Definition: openjpeg.h:117
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
int udpauxport
udp port
Definition: auxtrans_manager.h:40
void close_aux_transport(auxtrans_param_t auxtrans)
Close auxiliary transport server of JPIP server.
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 listensock
Definition: auxtrans_manager.c:90
void send_responsedata_on_aux(OPJ_BOOL istcp, auxtrans_param_t auxtrans, const char cid[], void *data, OPJ_SIZE_T datalen, OPJ_SIZE_T maxlenPerFrame)
Send response data on aux transport.
Definition: auxtrans_manager.c:109
OPJ_BOOL recv_ack(SOCKET connected_socket, void *data)
Definition: auxtrans_manager.c:274
SOCKET tcplistensock
listenning socket for aux tcp (-1 if not open)
Definition: auxtrans_manager.h:41
#define OPJ_FALSE
Definition: openjpeg.h:118
SOCKET accept_socket(SOCKET listening_socket)
accept a new connection to the listenning socket
Definition: sock_manager.c:96
char * cid
Definition: auxtrans_manager.c:86
OPJ_BOOL identify_cid(SOCKET connected_socket, char refcid[], FILE *fp)
Identify cid sent from client.
Definition: auxtrans_manager.c:253
int tcpauxport
tcp port
Definition: auxtrans_manager.h:39
SOCKET udplistensock
listenning socket for aux udp (-1 if not open)
Definition: auxtrans_manager.h:42