www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: multiple SFTP subsystem

multiple SFTP subsystem

From: zl liu <xieepp_at_gmail.com>
Date: Tue, 11 Jan 2011 12:35:23 +0800

I want to use multiple SFTP subsystem£º
LIBSSH2_SESSION *session = libssh2_session_init();

LIBSSH2_SFTP *sftp_session1 = libssh2_sftp_init(session);
LIBSSH2_SFTP *sftp_session2 = libssh2_sftp_init(session);
LIBSSH2_SFTP *sftp_session3 = libssh2_sftp_init(session);

LIBSSH2_SFTP_HANDLE *sftp_handle1 = libssh2_sftp_open(sftp_sessions1, ...);
LIBSSH2_SFTP_HANDLE *sftp_handle2 = libssh2_sftp_open(sftp_sessions2, ...);
LIBSSH2_SFTP_HANDLE *sftp_handle3 = libssh2_sftp_open(sftp_sessions3, ...);

How to make use of this three handles to transfer files faster, thanks!

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-01-11

the libssh2 team