libssh2_channel_wait_eof(3)
π libssh2_channel_wait_eof(3) π
okay bestie, so this one lives in the libssh2 manual and it's all about sitting pretty and waiting for the other side to say "yeah, that's it, nothing more coming" π¦
β¨ NAME β¨
libssh2_channel_wait_eof β wait for the remote to reply to an EOF request π
πΈ SYNOPSIS πΈ
#include <libssh2.h>
int
libssh2_channel_wait_eof(LIBSSH2_CHANNEL *channel);
π DESCRIPTION π
So like, you already told the remote end you're done sending (that's the whole EOF request thing), and now you're just standing there like π§ waiting for them to send their own EOF back at you.
That's it. That's the function. Wait for the remote end to send EOF. iconic, low effort, high reward β¨
π₯ RETURN VALUE π₯
- Returns
0on success β slay, it worked π - Returns negative on failure β not slay π
- Returns
LIBSSH2_ERROR_EAGAINwhen it would otherwise block. And yes,LIBSSH2_ERROR_EAGAINis a negative number, but ngl, it's not really a failure per se. It's giving "not right now, try again later" not "everything is broken" π«Ά
π SEE ALSO π
okay that's the whole page, no notes π this one's from libssh2 0.15, dated 1 Jun 2007, so it's been serving main character energy since before most of us could read. periodt. πππ¦
π¦ 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