mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
callbacks: Implement list of callbacks for channels
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
5c67530f1e
commit
bbe437dbb1
14
src/packet.c
14
src/packet.c
@@ -371,14 +371,12 @@ static void ssh_packet_socket_controlflow_callback(int code, void *userdata)
|
||||
it = ssh_list_get_iterator(session->channels);
|
||||
while (it != NULL) {
|
||||
channel = ssh_iterator_value(ssh_channel, it);
|
||||
if (ssh_callbacks_exists(channel->callbacks,
|
||||
channel_write_wontblock_function)) {
|
||||
SSH_LOG(SSH_LOG_TRACE, "Executing write_wontblock callback for channel");
|
||||
channel->callbacks->channel_write_wontblock_function(session,
|
||||
channel,
|
||||
channel->remote_window,
|
||||
channel->callbacks->userdata);
|
||||
}
|
||||
ssh_callbacks_execute_list(channel->callbacks,
|
||||
ssh_channel_callbacks,
|
||||
channel_write_wontblock_function,
|
||||
session,
|
||||
channel,
|
||||
channel->remote_window);
|
||||
it = it->next;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user