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.
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.
void vortex_channel_pool_attach (VortexChannelPool *pool, VortexChannel *channel)
 Adds a channel reference to a channel pool.
void vortex_channel_pool_close (VortexChannelPool *pool)
 Closes a channel pool.
void vortex_channel_pool_deattach (VortexChannelPool *pool, VortexChannel *channel)
 Detach a channel reference from the channel pool.
VortexConnectionvortex_channel_pool_get_connection (VortexChannelPool *pool)
 Returns the Vortex Connection where this channel pool is created.
int vortex_channel_pool_get_id (VortexChannelPool *pool)
 Return the channel pool unique identifier.
VortexChannelvortex_channel_pool_get_next_ready (VortexChannelPool *pool, axl_bool auto_inc)
 Returns the next "ready to use" channel from the given pool.
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.
int vortex_channel_pool_get_num (VortexChannelPool *pool)
 Returns the number of channel this pool have.
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.
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.
void vortex_channel_pool_release_channel (VortexChannelPool *pool, VortexChannel *channel)
 Release a channel from the channel pool.
void vortex_channel_pool_remove (VortexChannelPool *pool, int num)
 Removes channels from the given channel pool.