libssh2_channe...window_adjust2(3)
β¨ 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. πβ¨
π¦ 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