Vishal Sharma wrote: > Do I call "rc = libssh2_init (0);" within each thread
No. > should there be a master thread which would call "rc = libssh2_init (0);" Yes. Call it one time before creating any threads. Also make sure to guard the shared resource (session) with locks. //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
