libssh2_channel_direct_tcpip(3)
π libssh2_channel_direct_tcpip π
okay bestie, welcome to the manual page for libssh2_channel_direct_tcpip(3) β that's the libssh2 one, yes, the SSH library, we're doing serious networking today and we're doing it cutely β¨
πΈ NAME πΈ
libssh2_channel_direct_tcpip β it's a convenience macro that wraps libssh2_channel_direct_tcpip_ex(3) calls π
like. that's literally its whole job. it's the lil shortcut bestie. the middle man. the girlypop who makes the call for you π
π¦ SYNOPSIS π¦
first you gotta pull in the header, no cap:
#include <libssh2.h>
then, the moment you've been waiting for:
LIBSSH2_CHANNEL *
libssh2_channel_direct_tcpip(LIBSSH2_SESSION *session,
const char *host, int port);
three things go in: a session, a host, and a port. that's it. that's the whole vibe. π
β¨ DESCRIPTION β¨
so here's the tea β β this one is a macro, not a full-on function, and it lives in a public libssh2 header file. and what does this macro do? it uses the underlying function libssh2_channel_direct_tcpip_ex(3) underneath. it's giving "I'm just here to make your life easier" energy, and honestly? iconic π
so when you call it, you're really calling the _ex version, but with fewer things to type. obsessed fr fr π
π RETURN VALUE π
bestie I'm not gonna lie to you β this one doesn't spill its own tea. go look at libssh2_channel_direct_tcpip_ex(3) for the return value, okay? π«Ά
π ERRORS π
same situation, same energy: see libssh2_channel_direct_tcpip_ex(3). that's where the error lore lives. β¨
π SEE ALSO π
libssh2_channel_direct_tcpip_ex(3)β the main character this whole page is about, lowkey. go read it. iykyk π
real talk, no cap: this page is short because the macro is short. the actual details are all inlibssh2_channel_direct_tcpip_ex(3). don't @ me, @ the_expage π
and that's the whole page bestie!! this lil cutie came from libssh2 1.2.4 and it's dated 20 Feb 2010 β an elder, a legend, a founding mother of the group chat πΈπ
stay hydrated, read your _ex page, and stream responsibly π¦β¨
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms