Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/ftp_get_descriptor.c

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

revision 32 by hirohitohigashi, Sat Feb 28 15:03:18 2009 UTC revision 50 by hirohitohigashi, Wed Dec 2 15:13:30 2009 UTC
# Line 39  int ftp_get_descriptor( LIBOFTP *ftp, co Line 39  int ftp_get_descriptor( LIBOFTP *ftp, co
39  {  {
40      int data_socket;      int data_socket;
41    
42        if( ftp->socket < 0 ) return LIBOFTP_ERROR;
43    
44      if( ftp->flag_passive ) {      if( ftp->flag_passive ) {
45          data_socket = ftp_getready_pasv( ftp, "RETR", fname );          data_socket = ftp_getready_pasv( ftp, "RETR", fname );
46      } else {      } else {
# Line 67  int ftp_get_descriptor_close( LIBOFTP *f Line 69  int ftp_get_descriptor_close( LIBOFTP *f
69       */       */
70      close( desc );      close( desc );
71    
72        if( ftp->socket < 0 ) return LIBOFTP_ERROR;
73    
74      /*      /*
75       * receive response.       * receive response.
76       */       */

Legend:
Removed from v.32  
changed lines
  Added in v.50

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