libssh2_channe..._extended_data(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_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 in 1.1.0. 🚨 Use the libssh2_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 three LIBSSH2_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 to libssh2_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. πŸ’–