libssh2_channel_direct_streamlocal_ex.3 (1223B)
1.TH libssh2_channel_direct_streamlocal_ex 3 "10 Apr 2023" "libssh2 1.11.0" "libssh2" 2.SH NAME 3libssh2_channel_direct_streamlocal_ex - Tunnel a UNIX socket connection through an SSH session 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8LIBSSH2_CHANNEL * 9libssh2_channel_direct_streamlocal_ex(LIBSSH2_SESSION *session, 10 const char *socket_path, 11 const char *shost, int sport); 12.fi 13.SH DESCRIPTION 14\fIsession\fP - Session instance as returned by 15.BR libssh2_session_init_ex(3) 16 17\fIsocket_path\fP - UNIX socket to connect to using the SSH host as a proxy. 18 19\fIshost\fP - Host to tell the SSH server the connection originated on. 20 21\fIsport\fP - Port to tell the SSH server the connection originated from. 22 23Tunnel a UNIX socket connection through the SSH transport via the remote host to 24a third party. Communication from the client to the SSH server remains 25encrypted, communication from the server to the 3rd party host travels 26in cleartext. 27.SH RETURN VALUE 28Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors. 29.SH ERRORS 30\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed. 31.SH SEE ALSO 32.BR libssh2_session_init_ex(3)