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