void vortex_connection_foreach_channel VortexConnection connection,
GHFunc  func,
gpointer  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.

Example:

 void my_function_foreach (gpointer key, gpointer value, gpointer 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);

      return;
 }

Parameters:
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.