1libssh2_session_set_last_error(3)libssh2 manuallibssh2_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    libssh2_session_set_last_error(LIBSSH2_SESSION   *session,   int
12       errcode, const char *errmsg)
13
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
28

RETURN VALUE

30       Numeric error code corresponding to the the Error Code constants.
31
32

AVAILABILITY

34       Added in 1.6.1
35
36

SEE ALSO

38       libssh2_session_last_error(3) libssh2_session_last_errno(3)
39
40
41
42libssh2 1.6.1                     26 Oct 2015libssh2_session_set_last_error(3)
Impressum