libssh  0.5.4
Functions
The SSH threading functions.

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. More...
 
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. More...
 

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
cbpointer to a ssh_threads_callbacks_struct structure, which contains the different callbacks to be set.
See Also
ssh_threads_callbacks_struct
SSH_THREADS_PTHREAD