The SSH threading functions.
[The libssh API]

Threading with libssh. More...

Functions

struct
ssh_threads_callbacks_struct * 
ssh_threads_get_noop ()
 returns a pointer on the noop threads callbacks, to be used with ssh_threads_set_callbacks.
int ssh_threads_set_callbacks (struct ssh_threads_callbacks_struct *cb)
 sets the thread callbacks necessary if your program is using libssh in a multithreaded fashion.

Detailed Description

Threading with libssh.


Function Documentation

struct ssh_threads_callbacks_struct* ssh_threads_get_noop ( void   )  [read]

returns a pointer on the noop threads callbacks, to be used with ssh_threads_set_callbacks.

These callbacks do nothing and are being used by default.

See also:
ssh_threads_set_callbacks
int ssh_threads_set_callbacks ( struct ssh_threads_callbacks_struct *  cb  ) 

sets the thread callbacks necessary if your program is using libssh in a multithreaded fashion.

This function must be called first, outside of any threading context (in your main() for instance), before ssh_init().

Parameters:
cb pointer to a ssh_threads_callbacks_struct structure, which contains the different callbacks to be set.
See also:
ssh_threads_callbacks_struct
SSH_THREADS_PTHREAD

Generated on 25 Feb 2016 for libssh by  doxygen 1.6.1