1libssh2_session_free(3) libssh2 manual libssh2_session_free(3)
2
3
4
6 libssh2_session_free - frees resources associated with a session
7 instance
8
10 #include <libssh2.h>
11
12 int libssh2_session_free(LIBSSH2_SESSION *session);
13
15 Frees all resources associated with a session instance. Typically
16 called after libssh2_session_disconnect_ex(3)
17
19 Return 0 on success or negative on failure. It returns LIB‐
20 SSH2_ERROR_EAGAIN when it would otherwise block. While LIB‐
21 SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per
22 se.
23
25 libssh2_session_init_ex(3) libssh2_session_disconnect_ex(3)
26
27
28
29libssh2 0.15 1 Jun 2007 libssh2_session_free(3)