Sets 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,
cbtype - Callback type. One of the types listed in 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. If the function returns 0, the packet will be accepted nonetheless.
Called when an X11 connection has been accepted
Called when libssh2 wants to send some data on the connection. Can be set to a custom function to handle I/O your own way.
This HTML page was made with roffit.