libssh2_channel_free.3 788 B

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