Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/liboftp.h

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

revision 17 by hirohitohigashi, Wed Feb 25 13:47:38 2009 UTC revision 23 by hirohitohigashi, Fri Feb 27 14:32:54 2009 UTC
# Line 23  Line 23 
23  typedef struct  typedef struct
24  {  {
25      int socket;      int socket;
26      struct sockaddr_in sockaddr;      struct sockaddr_in saddr;
27      enum { UNIX = 1, Windows_NT = 2 } system_type;      enum { UNIX = 1, Windows_NT = 2 } system_type;
28      enum { ASCII = 1, IMAGE = 3 } data_type;      enum { ASCII = 1, IMAGE = 3 } data_type;
29      int flag_passive;      int flag_passive;
# Line 40  typedef struct Line 40  typedef struct
40  int ftp_connect( LIBOFTP *ftp, const char *host, int port );  int ftp_connect( LIBOFTP *ftp, const char *host, int port );
41  int ftp_auth( LIBOFTP *ftp, const char *user, const char *pass );  int ftp_auth( LIBOFTP *ftp, const char *user, const char *pass );
42  int ftp_passive( LIBOFTP *ftp, int flag );  int ftp_passive( LIBOFTP *ftp, int flag );
43    int ftp_type( LIBOFTP *ftp, const char *type );
44    int ftp_quit( LIBOFTP *ftp );
45  int ftp_get_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz );  int ftp_get_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz );
46  int ftp_put_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz );  int ftp_put_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz );
47  int ftp_append_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz );  int ftp_append_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz );
48  int ftp_type( LIBOFTP *ftp, const char *type );  int ftp_delete( LIBOFTP *ftp, const char *fname );
49    int ftp_site( LIBOFTP *ftp, const char *cmdline );
50    int ftp_mkdir( LIBOFTP *ftp, const char *dirname );
51    int ftp_rmdir( LIBOFTP *ftp, const char *dirname );
52    int ftp_pwd( LIBOFTP *ftp, char *buf, int bufsiz );
53    int ftp_cd( LIBOFTP *ftp, const char *dirname );
54    
55    
56    
57  /***** Inline functions *****************************************************/  /***** Inline functions *****************************************************/

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

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