Fixes: scp blocking modes, MacError abstract indirection

Additions: Channel Close callback
This commit is contained in:
Sara Golemon
2004-12-20 21:52:35 +00:00
parent 66f913e53a
commit d974137db9
5 changed files with 25 additions and 3 deletions

View File

@@ -734,6 +734,10 @@ LIBSSH2_API int libssh2_channel_close(LIBSSH2_CHANNEL *channel)
return 0;
}
if (channel->close_cb) {
LIBSSH2_CHANNEL_CLOSE(session, channel);
}
packet[0] = SSH_MSG_CHANNEL_CLOSE;
libssh2_htonu32(packet + 1, channel->remote.id);
if (libssh2_packet_write(session, packet, 5)) {