1 .\" $Id: libssh2_channel_direct_tcpip_ex.3,v 1.1 2007/06/13 17:22:15 jehousley Exp $
3 .TH libssh2_channel_direct_tcpip_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
5 libssh2_channel_direct_tcpip_ex - Tunnel a TCP connection through an SSH session
10 libssh2_channel_direct_tcpip_ex(LIBSSH2_SESSION *session, const char *host, int port, const char *shost, int sport);
13 libssh2_channel_direct_tcpip(LIBSSH2_SESSION *session, const char *host, int port);
16 /fIsession/fP - Session instance as returned by
17 .BR libssh2_session_init(3)
19 /fIhost/fP - Third party host to connect to using the SSH host as a proxy.
21 /fIport/fP - Port on third party host to connect to.
23 /fIshost/fP - Host to tell the SSH server the connection originated on.
25 /fIsport/fP - Port to tell the SSH server the connection originated from.
27 Tunnel a TCP/IP connection through the SSH transport via the remote host to
28 a third party. Communication from the client to the SSH server remains
29 encrypted, communication from the server to the 3rd party host travels
33 Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors.
36 \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
39 .BR libssh2_session_init(3)