OpenJPEG  2.2.0
Data Structures | Typedefs | Functions
auxtrans_manager.h File Reference
#include "sock_manager.h"
#include "opj_includes.h"

Go to the source code of this file.

Data Structures

struct  auxtrans_param
 auxiliary transport setting parameters More...
 

Typedefs

typedef struct auxtrans_param auxtrans_param_t
 auxiliary transport setting parameters More...
 

Functions

auxtrans_param_t init_aux_transport (int tcp_auxport, int udp_auxport)
 Initialize auxiliary transport server of JPIP server. More...
 
void close_aux_transport (auxtrans_param_t auxtrans)
 Close auxiliary transport server of JPIP server. More...
 
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. More...
 

Typedef Documentation

auxiliary transport setting parameters

Function Documentation

void close_aux_transport ( auxtrans_param_t  auxtrans)

Close auxiliary transport server of JPIP server.

Parameters
[in]auxtransclosing transport server

auxiliary response parameters

References close_socket(), auxtrans_param::tcplistensock, and auxtrans_param::udplistensock.

auxtrans_param_t init_aux_transport ( int  tcp_auxport,
int  udp_auxport 
)

Initialize auxiliary transport server of JPIP server.

Parameters
[in]tcp_auxportopening tcp auxiliary port ( 0 not to open, valid No. 49152-65535)
[in]udp_auxportopening udp auxiliary port ( 0 not to open, valid No. 49152-65535)
Returns
initialized transport parameters

References open_listeningsocket(), auxtrans_param::tcpauxport, auxtrans_param::tcplistensock, auxtrans_param::udpauxport, and auxtrans_param::udplistensock.

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.

Parameters
[in]istcptrue if tcp, false if udp
[in]auxtransavailable transport parameters
[in]cidchannel ID
[in]datasending data
[in]lengthlength of data
[in]maxlenPerFramemaximum data length to send per frame

References aux_streaming(), FCGI_stderr, gene_auxresponse(), and auxtrans_param::tcplistensock.