Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/sub.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (hide annotations) (download) (as text)
Sat Feb 28 02:04:32 2009 UTC (15 years, 1 month ago) by hirohitohigashi
File MIME type: text/x-chdr
File size: 1676 byte(s)
added list and nlist functions.

1 hirohitohigashi 17 /*
2     liboftp: this is an FTP library to simplify the work to a Developer
3     who want to work with FTP servers (RFC 959).
4    
5     Copyright (c) 2009 hirohito higashi. All rights reserved.
6     This file is distributed under BSD license.
7     */
8    
9    
10     #ifndef __libOftp_Sub_H_proto_
11     #define __libOftp_Sub_H_proto_
12    
13     /***** Feature test switches ************************************************/
14     #define FTP_DEBUG
15    
16    
17     /***** System headers *******************************************************/
18     #ifdef FTP_DEBUG
19     #include <stdio.h>
20     #endif
21    
22     /***** Local headers ********************************************************/
23     /***** Constat values *******************************************************/
24     /***** Macros ***************************************************************/
25     /***** Typedefs *************************************************************/
26     #define DEBUGPRINT1(f,a1) printf((f),(a1));
27    
28    
29     /***** Global variables *****************************************************/
30     /***** Function prototypes **************************************************/
31     int sendn( int sd, const char *buf, int len, int flags );
32     int recv_line( int sd, char *buf, int bufsiz, int flags );
33 hirohitohigashi 20 int ftp_send_command( LIBOFTP *ftp, const char *cmd );
34 hirohitohigashi 17 int ftp_receive_response( LIBOFTP *ftp, char *res_buf, int bufsiz );
35     int ftp_set_so_rcvtimeo( int sock, int sec, int usec );
36 hirohitohigashi 26 int ftp_getready_active( LIBOFTP *ftp, const char *cmd, const char *fname );
37     int ftp_getready_pasv( LIBOFTP *ftp, const char *cmd, const char *fname );
38 hirohitohigashi 17
39    
40     #if defined( __QNX__ ) && !defined( __QNXNTO__ )
41     int snprintf( char *, int, char *, ... );
42     #endif
43    
44    
45     /***** Inline functions *****************************************************/
46    
47    
48     #endif

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