libssh2_session_get_blocking(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_session_get_blocking ✨

okay bestie, welcome to the libssh2_session_get_blocking(3) page πŸ’– it lives in the libssh2 manual, and it's genuinely one of the shortest little icons in the whole library. no cap. let's get into it 🫢


🌸 NAME 🌸

libssh2_session_get_blocking β€” evaluate blocking mode on session πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <libssh2.h>

int
libssh2_session_get_blocking(LIBSSH2_SESSION *session);

that's it. that's the whole vibe. one include, one function, one pointer argument πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

so here's the tea β˜• β€” this function is literally just asking your session a yes/no question about its blocking mode.

  • it returns 0 if the state of the session has previously been set to non-blocking πŸ’€ (aka "we move different, nothing waits around here")
  • it returns 1 if the state was set to blocking 😭 (aka "we sit here and WAIT, and we're fine with it")

that's the entire plot. no plot twist. it just reports back what you (or somebody else) already set. it's giving ✨informant✨


⭐ RETURN VALUE ⭐

see description πŸ‘† bestie, the manpage literally said "see description" and honestly? iconic. the return value is the whole description. 0 or 1, that's it, no extra lore, no errno drama, no secret third thing 🧚


🌈 SEE ALSO 🌈


mwah πŸ’‹ and that's a wrap on the libssh2_session_get_blocking(3) page, brought to you by libssh2 version 0.15, dated 1 Jun 2007 🌸 (yes, 2007, she's an elder but she still ate πŸ’…). go check your blocking mode, bestie, and stay non-blocking if you can help it πŸ¦‹βœ¨