1libssh2_channel_forward_cancel(3) libssh2 libssh2_channel_forward_cancel(3)
2
3
4
6 libssh2_channel_forward_cancel - cancel a forwarded TCP port
7
9 #include <libssh2.h>
10
11 int
12 libssh2_channel_forward_cancel(LIBSSH2_LISTENER *listener);
13
15 listener - Forwarding listener instance as returned by libssh2_chan‐
16 nel_forward_listen_ex(3)
17
18 Instruct the remote host to stop listening for new connections on a
19 previously requested host/port.
20
22 Return 0 on success or negative on failure. It returns LIBSSH2_ER‐
23 ROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is
24 a negative number, it is not really a failure per se.
25
27 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
28
29 LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
30
32 libssh2_channel_forward_listen_ex(3)
33
34
35
36libssh2 0.15 1 Jun 2007 libssh2_channel_forward_cancel(3)