void vortex_connection_foreach_channel ( VortexConnection connection,
axlHashForeachFunc  func,
axlPointer  user_data 

Allows to perform an iterator over all channels created inside the given connection.

Allows an application to iterate over all channel created over this session. This allows to check or do some operation over the session channels.

The channel iteration is made following the channel number order. First low-numbered channel following high-numbered ones.


 void my_function_foreach (axlPointer key, axlPointer value, axlPointer user_data)
      VortexChannel * channel = value;
      // do some operation with the channel.

 void my_function (VortexConnection * connection) 

      // do a channel foreach on this connection
        vortex_connection_foreach_channel (connection, my_function_foreach, NULL);


connection the connection where channels will be iterated.
func the function to apply for each channel found
user_data user data to be passed into the foreach function.