1libssh2_channel_forward_cancel(3)libssh2 manuallibssh2_channel_forward_cancel(3)
2
3
4

NAME

6       libssh2_channel_forward_cancel - cancel a forwarded TCP port
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_channel_forward_cancel(LIBSSH2_LISTENER *listener);
12
13

DESCRIPTION

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
21

RETURN VALUE

23       Return   0  on  success  or  negative  on  failure.   It  returns  LIB‐
24       SSH2_ERROR_EAGAIN  when  it   would   otherwise   block.   While   LIB‐
25       SSH2_ERROR_EAGAIN  is  a negative number, it isn't really a failure per
26       se.
27
28

ERRORS

30       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
31
32       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
33
34

SEE ALSO

36       libssh2_channel_forward_listen_ex(3)
37
38
39
40libssh2 0.15                      1 Jun 2007 libssh2_channel_forward_cancel(3)
Impressum