libssh2_session_disconnect(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_disconnect β€” bestie, it's time to log off πŸ’–

okay so this one is from the libssh2 manual, and it's literally the politest way to say "bye bye" to your SSH session ✨


🌸 NAME 🌸

libssh2_session_disconnect β€” a convenience macro for libssh2_session_disconnect_ex(3) calls 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <libssh2.h>

int
libssh2_session_disconnect(LIBSSH2_SESSION *session, const char *description);

✨ DESCRIPTION ✨

okay so listen πŸ‘‘ β€” this is a macro, not a whole real function. It's defined in a public libssh2 header file, and under the hood it's just using the actual grown-up function, libssh2_session_disconnect_ex(3).

so like… it's giving shortcut energy πŸ’… the macro is the outfit, libssh2_session_disconnect_ex(3) is the whole person, iykyk.


🌈 RETURN VALUE 🌈

no thoughts of its own bestie β€” go look at libssh2_session_disconnect_ex(3) πŸ’œ


πŸ¦‹ ERRORS πŸ¦‹

same vibe, fr fr β€” see libssh2_session_disconnect_ex(3) for all the deets 😭


πŸ’… SEE ALSO πŸ’…


not me ending the page with a SEE ALSO that's the same thing three times πŸ™ˆ it's lowkey iconic tho

and that's the whole page bestie, no cap πŸ’– this little beauty comes to you from libssh2 version 1.2.4, dated 20 Feb 2010 β€” yeah she's vintage, she's a classic, she ate and left no crumbs πŸŽ€βœ¨πŸŒΈ