@brief Set the channel callback functions.
This functions sets the callback structure to use your own callback functions for channel data and exceptions
@code struct ssh_channel_callbacks_struct cb = { .userdata = data, .channel_data = my_channel_data_function }; ssh_callbacks_init(&cb); ssh_set_channel_callbacks(channel, &cb); @endcode
@param channel The channel to set the callback structure.
@param cb The callback structure itself.
@return SSH_OK on success, SSH_ERROR on error.
See Implementation
@brief Set the channel callback functions.
This functions sets the callback structure to use your own callback functions for channel data and exceptions
@code struct ssh_channel_callbacks_struct cb = { .userdata = data, .channel_data = my_channel_data_function }; ssh_callbacks_init(&cb); ssh_set_channel_callbacks(channel, &cb); @endcode
@param channel The channel to set the callback structure.
@param cb The callback structure itself.
@return SSH_OK on success, SSH_ERROR on error.