Develop and Download Open Source Software

Browse Subversion Repository

Diff of /tags/REL-2.1/ftp_get_buffer.c

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

revision 26 by hirohitohigashi, Sat Feb 28 02:04:32 2009 UTC revision 28 by hirohitohigashi, Sat Feb 28 04:14:38 2009 UTC
# Line 12  Line 12 
12  #include <unistd.h>  #include <unistd.h>
13  #include <sys/types.h>  #include <sys/types.h>
14  #include <sys/socket.h>  #include <sys/socket.h>
15    #include <string.h>
16    #include <errno.h>
17    
18    
19  /***** Local headers ********************************************************/  /***** Local headers ********************************************************/
# Line 71  int ftp_get_buffer( LIBOFTP *ftp, const Line 73  int ftp_get_buffer( LIBOFTP *ftp, const
73          n = recv( data_socket, p, len, 0 );          n = recv( data_socket, p, len, 0 );
74          DEBUGPRINT1( "RECV: n=%d\n", n );          DEBUGPRINT1( "RECV: n=%d\n", n );
75          if( n < 0 ) {          if( n < 0 ) {
76                DEBUGPRINT1( "get_buffer: recv error. %s\n", strerror(errno) );
77              close( data_socket );              close( data_socket );
78              return -1;              return -1;
79          }          }

Legend:
Removed from v.26  
changed lines
  Added in v.28

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