Commit the version that actually uses the non-blocking read
Этот коммит содержится в:
родитель
e85a2199b6
Коммит
c5fb9d8f1a
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: sftp_nonblock.c,v 1.3 2007/04/22 14:47:27 jehousley Exp $
|
* $Id: sftp_nonblock.c,v 1.4 2007/04/22 14:51:21 jehousley Exp $
|
||||||
*
|
*
|
||||||
* Sample showing how to do SFTP non-blocking transfers.
|
* Sample showing how to do SFTP non-blocking transfers.
|
||||||
*
|
*
|
||||||
@ -158,7 +158,7 @@ int main(int argc, char *argv[])
|
|||||||
char mem[1024];
|
char mem[1024];
|
||||||
|
|
||||||
/* loop until we fail */
|
/* loop until we fail */
|
||||||
fprintf(stderr, "libssh2_sftp_read()!\n");
|
fprintf(stderr, "libssh2_sftp_readnb()!\n");
|
||||||
rc = libssh2_sftp_read(sftp_handle, mem, sizeof(mem));
|
rc = libssh2_sftp_read(sftp_handle, mem, sizeof(mem));
|
||||||
if (rc > 0) {
|
if (rc > 0) {
|
||||||
write(2, mem, rc);
|
write(2, mem, rc);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user