NAMElibssh2_session_callback_set - set a callback function SYNOPSIS
DESCRIPTIONSets a custom callback handler for a previously initialized session object. Callbacks are triggered by the receipt of special packets at the Transport layer. To disable a callback, set it to NULL. session - Session instance as returned by libssh2_session_init_ex(3) cbtype - Callback type. One of the types listed in Callback Types. callback - Pointer to custom callback function. The prototype for this function must match the associated callback declaration macro. CALLBACK TYPES
Called when a SSH_MSG_IGNORE message is received Called when a SSH_MSG_DEBUG message is received Called when a SSH_MSG_DISCONNECT message is received Called when a mismatched MAC has been detected in the transport layer Called when an X11 connection has been accepted RETURN VALUEPointer to previous callback handler. Returns NULL if no prior callback handler was set or the callback type was unknown. SEE ALSOThis HTML page was made with roffit. |