1libssh2_session_last_error(3)       libssh2      libssh2_session_last_error(3)
2
3
4

NAME

6       libssh2_session_last_error - get the most recent error
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int
12       libssh2_session_last_error(LIBSSH2_SESSION *session,
13                                  char **errmsg, int *errmsg_len, int want_buf);
14

DESCRIPTION

16       session - Session instance as returned by libssh2_session_init_ex(3)
17
18       errmsg - If not NULL, is populated by reference with the human readable
19       form of the most recent error message.
20
21       errmsg_len - If not NULL, is populated by reference with the length  of
22       errmsg.  (The string is NUL-terminated, so the length is only useful as
23       an optimization, to avoid calling strlen.)
24
25       want_buf - If set to a non-zero value, "ownership" of the errmsg buffer
26       will  be  given  to  the calling scope. If necessary, the errmsg buffer
27       will be duplicated.
28
29       Determine the most recent error condition and its cause.
30

RETURN VALUE

32       Numeric error code corresponding to the the Error Code constants.
33

SEE ALSO

35       libssh2_session_last_errno(3) libssh2_session_set_last_error(3)
36
37
38
39libssh2 0.15                      1 Jun 2007     libssh2_session_last_error(3)
Impressum