diff --git a/example/simple/scp.c b/example/simple/scp.c index 745faae..f5155b3 100644 --- a/example/simple/scp.c +++ b/example/simple/scp.c @@ -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"); diff --git a/example/simple/scp_nonblock.c b/example/simple/scp_nonblock.c index 0fb96cd..e17927d 100644 --- a/example/simple/scp_nonblock.c +++ b/example/simple/scp_nonblock.c @@ -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"); diff --git a/example/simple/scp_write.c b/example/simple/scp_write.c index 8c5a8ad..1ad84fe 100644 --- a/example/simple/scp_write.c +++ b/example/simple/scp_write.c @@ -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"); diff --git a/example/simple/scp_write_nonblock.c b/example/simple/scp_write_nonblock.c index d57a8b1..e11d203 100644 --- a/example/simple/scp_write_nonblock.c +++ b/example/simple/scp_write_nonblock.c @@ -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"); diff --git a/example/simple/sftp.c b/example/simple/sftp.c index 9b44378..2f642bc 100644 --- a/example/simple/sftp.c +++ b/example/simple/sftp.c @@ -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"); diff --git a/example/simple/sftp_RW_nonblock.c b/example/simple/sftp_RW_nonblock.c index d800387..9054b51 100644 --- a/example/simple/sftp_RW_nonblock.c +++ b/example/simple/sftp_RW_nonblock.c @@ -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"); diff --git a/example/simple/sftp_mkdir.c b/example/simple/sftp_mkdir.c index 20deef7..e09baae 100644 --- a/example/simple/sftp_mkdir.c +++ b/example/simple/sftp_mkdir.c @@ -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"); diff --git a/example/simple/sftp_mkdir_nonblock.c b/example/simple/sftp_mkdir_nonblock.c index 58bdc91..e4d751b 100644 --- a/example/simple/sftp_mkdir_nonblock.c +++ b/example/simple/sftp_mkdir_nonblock.c @@ -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"); diff --git a/example/simple/sftp_nonblock.c b/example/simple/sftp_nonblock.c index f1dd575..9ec6891 100644 --- a/example/simple/sftp_nonblock.c +++ b/example/simple/sftp_nonblock.c @@ -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"); diff --git a/example/simple/sftp_write.c b/example/simple/sftp_write.c index f168395..dc231ff 100644 --- a/example/simple/sftp_write.c +++ b/example/simple/sftp_write.c @@ -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"); diff --git a/example/simple/sftp_write_nonblock.c b/example/simple/sftp_write_nonblock.c index 65b11c7..49669c3 100644 --- a/example/simple/sftp_write_nonblock.c +++ b/example/simple/sftp_write_nonblock.c @@ -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"); diff --git a/example/simple/sftpdir.c b/example/simple/sftpdir.c index fee78ed..ebdf731 100644 --- a/example/simple/sftpdir.c +++ b/example/simple/sftpdir.c @@ -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"); diff --git a/example/simple/sftpdir_nonblock.c b/example/simple/sftpdir_nonblock.c index 8b2d60d..269858d 100644 --- a/example/simple/sftpdir_nonblock.c +++ b/example/simple/sftpdir_nonblock.c @@ -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"); diff --git a/example/simple/ssh2.c b/example/simple/ssh2.c index e609e65..20bae39 100644 --- a/example/simple/ssh2.c +++ b/example/simple/ssh2.c @@ -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");