|
libssh
0.7.5
|
Threading with libssh. More...
Functions | |
| struct ssh_threads_callbacks_struct * | ssh_threads_get_noop (void) |
| Get the noop threads callbacks structure. More... | |
| int | ssh_threads_set_callbacks (struct ssh_threads_callbacks_struct *cb) |
| Set the thread callbacks structure. More... | |
Threading with libssh.
| struct ssh_threads_callbacks_struct* ssh_threads_get_noop | ( | void | ) |
Get the noop threads callbacks structure.
This can 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 | ) |
Set the thread callbacks structure.
This is 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() function for instance), before you call ssh_init().
| [in] | cb | A pointer to a ssh_threads_callbacks_struct structure, which contains the different callbacks to be set. |
1.8.13