libssh2_channe..._extended_data(3)
π libssh2_channel_handle_extended_data β setting the vibe for extended data π
okay bestie, welcome to libssh2's manual, page libssh2_channel_handle_extended_data. yes the title is long, no we are not shortening it, it's giving β¨ main character β¨ energy and we respect it.
This one sets the extended data handling mode on a channel. iykyk. π
β¨ SYNOPSIS β¨
#include <libssh2.h>
void
libssh2_channel_handle_extended_data(LIBSSH2_CHANNEL *channel,
int ignore_mode);
πΈ DESCRIPTION πΈ
okay so FIRST of all, big news:
π¨ This function is DEPRECATED in1.1.0. π¨ Use thelibssh2_channel_handle_extended_data2(3)function instead! not me telling you to move on, but likeβ¦ move on bestie π
Here's the tea on the two args:
channelβ the Active channel stream you wanna change extended data handling on. that's the one. πignore_modeβ you pick ONE of the threeLIBSSH2_CHANNEL_EXTENDED_DATA_*Constants. choose wisely, this is your moment:LIBSSH2_CHANNEL_EXTENDED_DATA_NORMALβ Queue extended data for eventual reading. it just sits there, patiently, waiting for its turn π«ΆLIBSSH2_CHANNEL_EXTENDED_DATA_MERGEβ Treat extended data and ordinary data the same. Merge all substreams such that calls tolibssh2_channel_read(3)will pull from all substreams on a first-in/first-out basis. one big happy blended family, FIFO style πLIBSSH2_CHANNEL_EXTENDED_DATA_IGNOREβ Discard all extended data as it arrives. literally not reading it, blocking it, ghosting it entirely ππ
So like, what does this whole thing do? it changes how a channel deals with extended data packets. and by default? all extended data is queued until read by libssh2_channel_read_ex(3). that's the default behavior, no cap. β¨
π¦ RETURN VALUE π¦
None.
that's it. that's the whole return value. it gives nothing and honestly? iconic. π
π SEE ALSO π
k bye bestie, go read the sequel ..._extended_data2 like the deprecation warning asked you to π
this page came from libssh2, version 0.15, dated 1 Jun 2007 β and the manual name is libssh2, in case you were wondering where the header went. it's right here. in my heart. π
π¦ 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