libssh2_channel_forward_cancel.3 (883B)
1.TH libssh2_channel_forward_cancel 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_channel_forward_cancel - cancel a forwarded TCP port 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_channel_forward_cancel(LIBSSH2_LISTENER *listener); 10.fi 11.SH DESCRIPTION 12\fIlistener\fP - Forwarding listener instance as returned by 13.BR libssh2_channel_forward_listen_ex(3) 14 15Instruct the remote host to stop listening for new connections on a previously requested host/port. 16.SH RETURN VALUE 17Return 0 on success or negative on failure. It returns 18LIBSSH2_ERROR_EAGAIN when it would otherwise block. While 19LIBSSH2_ERROR_EAGAIN is a negative number, it is not really a failure per se. 20.SH ERRORS 21\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed. 22 23\fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket. 24.SH SEE ALSO 25.BR libssh2_channel_forward_listen_ex(3)