libssh2_channel_free.3 (783B)
1.TH libssh2_channel_free 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_channel_free - free all resources associated with a channel 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_channel_free(LIBSSH2_CHANNEL *channel); 10.fi 11.SH DESCRIPTION 12\fIchannel\fP - Channel stream to free. 13 14Release all resources associated with a channel stream. If the channel has 15not yet been closed with 16.BR libssh2_channel_close(3) 17, it will be called automatically so that the remote end may know that it 18can safely free its own resources. 19.SH RETURN VALUE 20Return 0 on success or negative on failure. It returns 21LIBSSH2_ERROR_EAGAIN when it would otherwise block. While 22LIBSSH2_ERROR_EAGAIN is a negative number, it is not really a failure per se. 23.SH SEE ALSO 24.BR libssh2_channel_close(3)