OpenJPEG  2.3.0
Macros | Functions
channel_manager.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "channel_manager.h"

Macros

#define FCGI_stdout   stdout
 
#define FCGI_stderr   stderr
 
#define logstream   stderr
 

Functions

channellist_param_tgene_channellist (void)
 generate a channel list More...
 
channel_param_tgene_channel (query_param_t query_param, auxtrans_param_t auxtrans, cachemodel_param_t *cachemodel, channellist_param_t *channellist)
 generate a channel under the channel list More...
 
void set_channel_variable_param (query_param_t query_param, channel_param_t *channel)
 set channel variable parameters More...
 
void delete_channel (channel_param_t **channel, channellist_param_t *channellist)
 delete a channel More...
 
void delete_channellist (channellist_param_t **channellist)
 delete channel list More...
 
void print_allchannel (channellist_param_t *channellist)
 print all channel parameters More...
 
channel_param_tsearch_channel (const char cid[], channellist_param_t *channellist)
 search a channel by channel ID More...
 

Macro Definition Documentation

#define FCGI_stderr   stderr
#define FCGI_stdout   stdout

Referenced by gene_channel(), and search_channel().

#define logstream   stderr

Function Documentation

void delete_channel ( channel_param_t **  channel,
channellist_param_t channellist 
)

delete a channel

Parameters
[in]channeladdress of the deleting channel pointer
[in,out]channellistchannel list pointer

References channellist_param::first, channellist_param::last, logstream, channel_param::next, and opj_free().

Referenced by close_channel().

void delete_channellist ( channellist_param_t **  channellist)

delete channel list

Parameters
[in,out]channellistaddress of the channel list pointer

References channel_param::cid, logstream, channel_param::next, and opj_free().

Referenced by delete_session(), and delete_sessionlist().

channel_param_t* gene_channel ( query_param_t  query_param,
auxtrans_param_t  auxtrans,
cachemodel_param_t cachemodel,
channellist_param_t channellist 
)

generate a channel under the channel list

Parameters
[in]query_paramquery parameters
[in]auxtransauxiliary transport
[in]cachemodelreference cachemodel
[in]channellistchannel list pointer
Returns
pointer to the generated channel

References channel_param::aux, channel_param::cachemodel, channel_param::cid, query_param::cnew, FCGI_stdout, channellist_param::first, channellist_param::last, MAX_LENOFCID, channel_param::next, opj_malloc(), set_channel_variable_param(), channel_param::start_tm, tcp, auxtrans_param::tcpauxport, udp, and auxtrans_param::udpauxport.

Referenced by open_channel().

channellist_param_t* gene_channellist ( void  )

generate a channel list

Returns
pointer to the generated channel list

References channellist_param::first, channellist_param::last, and opj_malloc().

Referenced by gene_session().

void print_allchannel ( channellist_param_t channellist)

print all channel parameters

Parameters
[in]channellistchannel list pointer

References channel_param::cachemodel, channel_param::cid, channellist_param::first, logstream, channel_param::next, cachemodel_param::target, and target_param::targetname.

Referenced by print_allsession().

channel_param_t* search_channel ( const char  cid[],
channellist_param_t channellist 
)

search a channel by channel ID

Parameters
[in]cidchannel identifier
[in]channellistchannel list pointer
Returns
found channel pointer

References channel_param::cid, FCGI_stdout, channellist_param::first, and channel_param::next.

Referenced by close_channel().

void set_channel_variable_param ( query_param_t  query_param,
channel_param_t channel 
)

set channel variable parameters

Parameters
[in]query_paramquery parameters
[in,out]channelpointer to the modifying channel

Referenced by associate_channel(), and gene_channel().