1libssh2_channel_direct_tcpip_ex(3)  libssh2 libssh2_channel_direct_tcpip_ex(3)
2
3
4

NAME

6       libssh2_channel_direct_tcpip_ex  -  Tunnel  a TCP connection through an
7       SSH session
8

SYNOPSIS

10       #include <libssh2.h>
11
12       LIBSSH2_CHANNEL *
13       libssh2_channel_direct_tcpip_ex(LIBSSH2_SESSION *session,
14                                       const char *host, int port,
15                                       const char *shost, int sport);
16
17       LIBSSH2_CHANNEL *
18       libssh2_channel_direct_tcpip(LIBSSH2_SESSION *session,
19                                    const char *host, int port);
20

DESCRIPTION

22       session - Session instance as returned by libssh2_session_init_ex(3)
23
24       host - Third party host to connect to using the SSH host as a proxy.
25
26       port - Port on third party host to connect to.
27
28       shost - Host to tell the SSH server the connection originated on.
29
30       sport - Port to tell the SSH server the connection originated from.
31
32       Tunnel a TCP/IP connection through the SSH  transport  via  the  remote
33       host  to a third party. Communication from the client to the SSH server
34       remains encrypted, communication from the server to the 3rd party  host
35       travels in cleartext.
36

RETURN VALUE

38       Pointer  to  a newly allocated LIBSSH2_CHANNEL instance, or NULL on er‐
39       rors.
40

ERRORS

42       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
43

SEE ALSO

45       libssh2_session_init_ex(3)
46
47
48
49libssh2 0.15                      1 Jun 2007libssh2_channel_direct_tcpip_ex(3)
Impressum