libssh2_channel_wait_eof(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 0 on success β€” slay, it worked πŸ’–
  • Returns negative on failure β€” not slay 😭
  • Returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. And yes, LIBSSH2_ERROR_EAGAIN is 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. πŸ’–πŸŽ€πŸ¦‹