diff options
Diffstat (limited to 'lib/libftp/FtpAbort.c')
| -rw-r--r-- | lib/libftp/FtpAbort.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libftp/FtpAbort.c b/lib/libftp/FtpAbort.c index 98d72b8004a3..80943e52425a 100644 --- a/lib/libftp/FtpAbort.c +++ b/lib/libftp/FtpAbort.c @@ -2,9 +2,9 @@ Library for ftpd clients.(libftp) Copyright by Oleg Orel All rights reserved. - -This library is desined for free, non-commercial software creation. -It is changeable and can be improved. The author would greatly appreciate + +This library is desined for free, non-commercial software creation. +It is changeable and can be improved. The author would greatly appreciate any advises, new components and patches of the existing programs. Commercial usage is also possible with participation of it's author. @@ -21,20 +21,20 @@ FtpAbort(FTP *ftp) fd_set fds; char msgc=IAC; String msg; - + FD_ZERO(&fds); FD_SET(fileno(FTPCMD(ftp)),&fds); - + FtpPutc(ftp, FTPCMD(ftp), IAC); FtpPutc(ftp, FTPCMD(ftp), IP); - + if ( send ( fileno(FTPCMD(ftp)), &msgc , 1 ,MSG_OOB) != 1 ) return EXIT(ftp,QUIT); - + FtpPutc(ftp, FTPCMD(ftp), DM); - + FtpSendMessage(ftp,"ABOR"); - + while (select ( getdtablesize(), &fds, 0,0, &(ftp->timeout) )>0) { FtpGetMessage(ftp,msg); |
