remove pointless sleeps

This commit is contained in:
Daniel Stenberg 2009-04-28 10:35:30 +00:00
parent c306119dd6
commit 6409bb53ba
14 changed files with 14 additions and 42 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: scp.c,v 1.11 2008/11/10 16:48:41 bagder Exp $
* $Id: scp.c,v 1.12 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do a simple SCP transfer.
*/
@ -164,10 +164,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
fprintf(stderr, "all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: scp_nonblock.c,v 1.15 2009/03/25 22:52:32 bagder Exp $
* $Id: scp_nonblock.c,v 1.16 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SCP transfers in a non-blocking manner.
*
@ -276,10 +276,8 @@ shutdown:
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
fprintf(stderr, "all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: scp_write.c,v 1.6 2008/11/10 16:48:41 bagder Exp $
* $Id: scp_write.c,v 1.7 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do a simple SCP transfer.
*/
@ -186,10 +186,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
fprintf(stderr, "all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: scp_write_nonblock.c,v 1.9 2008/11/10 16:48:41 bagder Exp $
* $Id: scp_write_nonblock.c,v 1.10 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do a simple SCP transfer.
*/
@ -225,10 +225,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
fprintf(stderr, "all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp.c,v 1.16 2009/03/31 12:20:36 bagder Exp $
* $Id: sftp.c,v 1.17 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SFTP transfers.
*
@ -236,10 +236,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
fprintf(stderr, "all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_RW_nonblock.c,v 1.12 2008/11/10 16:48:41 bagder Exp $
* $Id: sftp_RW_nonblock.c,v 1.13 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SFTP transfers in a non-blocking manner.
*
@ -293,10 +293,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_mkdir.c,v 1.8 2008/11/10 16:48:41 bagder Exp $
* $Id: sftp_mkdir.c,v 1.9 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SFTP mkdir
*
@ -155,10 +155,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_mkdir_nonblock.c,v 1.11 2008/11/10 16:48:41 bagder Exp $
* $Id: sftp_mkdir_nonblock.c,v 1.12 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SFTP non-blocking mkdir.
*
@ -178,10 +178,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_nonblock.c,v 1.17 2009/03/13 22:14:47 bagder Exp $
* $Id: sftp_nonblock.c,v 1.18 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SFTP non-blocking transfers.
*
@ -278,10 +278,8 @@ shutdown:
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
fprintf(stderr, "all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_write.c,v 1.10 2009/03/31 12:20:36 bagder Exp $
* $Id: sftp_write.c,v 1.11 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SFTP write transfers.
*
@ -195,10 +195,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_write_nonblock.c,v 1.13 2009/03/31 12:20:36 bagder Exp $
* $Id: sftp_write_nonblock.c,v 1.14 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SFTP non-blocking write transfers.
*
@ -224,10 +224,8 @@ shutdown:
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftpdir.c,v 1.10 2008/11/10 16:48:41 bagder Exp $
* $Id: sftpdir.c,v 1.11 2009/04/28 10:35:30 bagder Exp $
*
* Sample doing an SFTP directory listing.
*
@ -207,10 +207,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: sftpdir_nonblock.c,v 1.12 2008/11/10 16:48:41 bagder Exp $
* $Id: sftpdir_nonblock.c,v 1.13 2009/04/28 10:35:30 bagder Exp $
*
* Sample doing an SFTP directory listing.
*
@ -236,10 +236,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done\n");

View File

@ -1,5 +1,5 @@
/*
* $Id: ssh2.c,v 1.18 2008/11/10 16:48:41 bagder Exp $
* $Id: ssh2.c,v 1.19 2009/04/28 10:35:30 bagder Exp $
*
* Sample showing how to do SSH2 connect.
*
@ -239,10 +239,8 @@ int main(int argc, char *argv[])
libssh2_session_free(session);
#ifdef WIN32
Sleep(1000);
closesocket(sock);
#else
sleep(1);
close(sock);
#endif
printf("all done!\n");