1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

API add:libssh2_sftp_get_channel

Return the channel of sftp, then caller can
control the channel's behavior.

Signed-off-by: liuzl <xieepp@gmail.com>
This commit is contained in:
liuzl
2011-09-08 08:50:24 +02:00
committed by Daniel Stenberg
parent c45de9176b
commit 30ac056cb0
4 changed files with 35 additions and 0 deletions

View File

@@ -3008,3 +3008,15 @@ libssh2_sftp_last_error(LIBSSH2_SFTP *sftp)
return sftp->last_errno;
}
/* libssh2_sftp_get_channel
* Return the channel of sftp, then caller can control the channel's behavior.
*/
LIBSSH2_API LIBSSH2_CHANNEL *
libssh2_sftp_get_channel(LIBSSH2_SFTP *sftp)
{
if (!sftp)
return NULL;
return sftp->channel;
}