Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/ftp_put_buffer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 17 by hirohitohigashi, Wed Feb 25 13:47:38 2009 UTC revision 20 by hirohitohigashi, Fri Feb 27 11:30:10 2009 UTC
# Line 54  int ftp_put_buffer( LIBOFTP *ftp, const Line 54  int ftp_put_buffer( LIBOFTP *ftp, const
54       */       */
55      if( ftp->flag_passive ) {      if( ftp->flag_passive ) {
56          data_socket = ftp_getready_pasv( ftp, fname, "STOR" );          data_socket = ftp_getready_pasv( ftp, fname, "STOR" );
         if( data_socket < 0 ) {  
             return -1;          /* XXX: mixed os level error and ftp protocol error. */  
         }  
57      } else {      } else {
58          return -2;              /* XXX: active mode not ready yet. */          data_socket = ftp_getready_active( ftp, fname, "STOR" );
59        }
60        if( data_socket < 0 ) {
61            return data_socket;
62      }      }
63    
64      /*      /*

Legend:
Removed from v.17  
changed lines
  Added in v.20

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26