1libssh2_session_callback_set(3) libssh2 manual libssh2_session_callback_set(3)
2
3
4

NAME

6       libssh2_session_callback_set - set a callback function
7

SYNOPSIS

9       #include <libssh2.h>
10
11       void   *   libssh2_session_callback_set(LIBSSH2_SESSION  *session,  int
12       cbtype, void *callback);
13
14

DESCRIPTION

16       session - Session instance as returned by libssh2_session_init(3)
17
18       cbtype - Callback type. One of the types listed in Callback Types.
19
20       callback - Pointer to custom callback function. The prototype for  this
21       function must match the associated callback declaration macro.
22
23       Sets  a  custom  callback  handler for a previously initialized session
24       object. Callbacks are triggered by the receipt of  special  packets  at
25       the Transport layer. To disable a callback, set it to NULL.
26
27

RETURN VALUE

29       Pointer to previous callback handler. Returns NULL if no prior callback
30       handler was set.
31
32

SEE ALSO

34       libssh2_session_init(3)
35
36
37
38libssh2 0.15                      1 Jun 2007   libssh2_session_callback_set(3)
Impressum