Functions
Vortex Channel Pool: Channel Pool management function.

Functions

void vortex_channel_pool_add (VortexChannelPool *pool, int num)
 Adds more channel to channel pool already created. More...
 
void vortex_channel_pool_add_full (VortexChannelPool *pool, int num, axlPointer user_data)
 Adds more channels to the pool provided, allowing to provide a pointer that will be passed to the channel creation function. More...
 
void vortex_channel_pool_attach (VortexChannelPool *pool, VortexChannel *channel)
 Adds a channel reference to a channel pool. More...
 
void vortex_channel_pool_close (VortexChannelPool *pool)
 Closes a channel pool. More...
 
void vortex_channel_pool_deattach (VortexChannelPool *pool, VortexChannel *channel)
 Detach a channel reference from the channel pool. More...
 
int vortex_channel_pool_get_available_num (VortexChannelPool *pool)
 Allows to get the number of channels that are available to be used on the pool (channels that can be selected by vortex_channel_pool_get_next_ready). More...
 
VortexConnectionvortex_channel_pool_get_connection (VortexChannelPool *pool)
 Returns the Vortex Connection where this channel pool is created. More...
 
int vortex_channel_pool_get_id (VortexChannelPool *pool)
 Return the channel pool unique identifier. More...
 
VortexChannelvortex_channel_pool_get_next_ready (VortexChannelPool *pool, axl_bool auto_inc)
 Returns the next "ready to use" channel from the given pool. More...
 
VortexChannelvortex_channel_pool_get_next_ready_full (VortexChannelPool *pool, axl_bool auto_inc, axlPointer user_data)
 Allows to get the next channel available on the provided pool, providing a pointer that will be passed to the create channel handler. More...
 
int vortex_channel_pool_get_num (VortexChannelPool *pool)
 Returns the number of channel this pool have. More...
 
VortexChannelPoolvortex_channel_pool_new (VortexConnection *connection, const char *profile, int init_num, VortexOnCloseChannel close, axlPointer close_user_data, VortexOnFrameReceived received, axlPointer received_user_data, VortexOnChannelPoolCreated on_channel_pool_created, axlPointer user_data)
 Creates a new pool of VortexChannel items, that are managed in a way that ensure better throutput relation. More...
 
VortexChannelPoolvortex_channel_pool_new_full (VortexConnection *connection, const char *profile, int init_num, VortexChannelPoolCreate create_channel, axlPointer create_channel_user_data, VortexOnCloseChannel close, axlPointer close_user_data, VortexOnFrameReceived received, axlPointer received_user_data, VortexOnChannelPoolCreated on_channel_pool_created, axlPointer user_data)
 Allows to create a new VortexChannelPool providing a function that is called to create channel rather allowing the pool to call vortex_channel_new directly. More...
 
void vortex_channel_pool_release_channel (VortexChannelPool *pool, VortexChannel *channel)
 Release a channel from the channel pool. More...
 
void vortex_channel_pool_remove (VortexChannelPool *pool, int num)
 Removes channels from the given channel pool. More...
 

Detailed Description