libssh
0.5.4
|
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... | |
Threading with libssh.
|
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.
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().
cb | pointer to a ssh_threads_callbacks_struct structure, which contains the different callbacks to be set. |