libssh2_channe...window_adjust2(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_receive_window_adjust2 β€” adjust the channel window ✨

okay bestie, welcome to the libssh2 girlies' corner of the manual πŸ’… this one's all about libssh2_channel_receive_window_adjust2, and yes the page header is out here looking like libssh2_channe...window_adjust2(3) because apparently the title got too long for its own good. iconic behavior honestly. 🫢


🌸 NAME 🌸

libssh2_channel_receive_window_adjust2 β€” adjust the channel window


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libssh2.h>

int
libssh2_channel_receive_window_adjust2(LIBSSH2_CHANNEL * channel,
                                       unsigned long adjustment,
                                       unsigned char force,
                                       unsigned int *window);

πŸ’– DESCRIPTION πŸ’–

so basically πŸ’… this function adjusts the receive window for a channel, and it does that by adjustment bytes. that's the whole vibe.

here's the tea tho πŸ“ if the amount you're adjusting by is less than LIBSSH2_CHANNEL_MINADJUST and force is 0, then the adjustment amount gets queued up for a later packet instead of going out right now. not me being patient about it, but okay, we wait. 😌

also, this function stores the new size of the receive window β€” like, the size as understood by the remote end β€” into the variable that window points to. so you get the receipts back. πŸ‘‘


πŸ’€ RETURN VALUE πŸ’€

returns 0 on success, and a negative value on error. and if you're running in non-blocking mode, it'll hand you back LIBSSH2_ERROR_EAGAIN whenever it would otherwise block. so don't panic, it's just saying "not right now bestie". 😭


πŸ™ˆ ERRORS πŸ™ˆ

no specific errors listed here, that's just the whole section. moving on, we don't dwell. ✨


πŸ‘‘ AVAILABILITY πŸ‘‘

added in libssh2 1.1, because the previous API had deficiencies. lowkey the glow-up era. πŸ”₯


🌈 SEE ALSO 🌈


okay that's the whole page, no cap πŸ’œ this was written for libssh2 version 1.1, dated 26 Mar 2009, and the header on top of it all is libssh2_channe...window_adjust2(3) β€” periodt. πŸŽ€βœ¨