1libssh2_session_set_last_error(3)   libssh2  libssh2_session_set_last_error(3)
2
3
4

NAME

6       libssh2_session_set_last_error - sets the internal error state
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int
12       libssh2_session_set_last_error(LIBSSH2_SESSION *session,
13                                      int errcode, const char *errmsg)
14

DESCRIPTION

16       session - Session instance as returned by libssh2_session_init_ex(3)
17
18       errcode  -  One  of  the  error  codes as defined in the public libssh2
19       header file.
20
21       errmsg - If not NULL, a copy of the given string is stored  inside  the
22       session object as the error message.
23
24       This function is provided for high level language wrappers (i.e. Python
25       or Perl) and other libraries that may extend  libssh2  with  additional
26       features while still relying on its error reporting mechanism.
27

RETURN VALUE

29       Numeric error code corresponding to the the Error Code constants.
30

AVAILABILITY

32       Added in 1.6.1
33

SEE ALSO

35       libssh2_session_last_error(3) libssh2_session_last_errno(3)
36
37
38
39libssh2                           26 Oct 2015libssh2_session_set_last_error(3)
Impressum