Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /tags/REL-2.2/sub.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations) (download) (as text)
Wed Feb 25 13:47:38 2009 UTC (15 years, 1 month ago) by hirohitohigashi
Original Path: trunk/sub.h
File MIME type: text/x-chdr
File size: 1618 byte(s)
Starting 2nd version of libOftp project. There are new designs.

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     int ftp_receive_response( LIBOFTP *ftp, char *res_buf, int bufsiz );
34     int ftp_set_so_rcvtimeo( int sock, int sec, int usec );
35     int ftp_send_pasv( LIBOFTP *ftp );
36     int ftp_openport_pasv( LIBOFTP *ftp );
37     int ftp_getready_pasv( LIBOFTP *ftp, const char *fname, const char *cmd );
38    
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