libssh2_channel_window_read_ex(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_window_read_ex(3) β€” the libssh2 manual, bestie edition πŸ’–

okay so we're peeking at the read window today, and honestly? it's giving very important. this one lives in the libssh2 manual, and it's about checking how much room the remote end still has to send you stuff before the window gets full. πŸͺŸβœ¨


✨ NAME ✨

libssh2_channel_window_read_ex β€” Check the status of the read window πŸ‘‘


🌸 SYNOPSIS 🌸

#include <libssh2.h>

unsigned long
libssh2_channel_window_read_ex(LIBSSH2_CHANNEL *channel,
                               unsigned long *read_avail,
                               unsigned long *window_size_initial)

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, this function checks the status of the read window. it hands you back the number of bytes the remote end may send without overflowing the window limit πŸ’…

and there's two optional lil out-params, bestie, both pointers:

  • if you pass read_avail, it gets populated with the number of bytes actually available to be read πŸ‘€
  • if you pass window_size_initial, it gets populated with the window_size_initial as defined by the channel_open request πŸŽ€

pass NULL for whichever one you don't care about, no pressure. 🫢


⭐ RETURN VALUE ⭐

the number of bytes which the remote end may send without overflowing the window limit. that's the whole vibe. πŸ”₯


πŸ’€ ERRORS πŸ’€

(no cap, this section is literally empty in the original. nothing to report. iconic of it honestly.) πŸ™ˆ


🌈 SEE ALSO 🌈


and that's the whole page, bestie!! this lil legend comes to you from libssh2 0.15, dated 1 Jun 2007 β€” yeah she's an elder but she still ate πŸ’…βœ¨ go read your window sizes, mwah πŸŽ€πŸ¦‹πŸ’–