Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/sub.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations) (download) (as text)
Fri Feb 27 11:30:10 2009 UTC (15 years, 1 month ago) by hirohitohigashi
File MIME type: text/x-chdr
File size: 1750 byte(s)
supported active mode. 

1 /*
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_send_command( LIBOFTP *ftp, const char *cmd );
34 int ftp_receive_response( LIBOFTP *ftp, char *res_buf, int bufsiz );
35 int ftp_set_so_rcvtimeo( int sock, int sec, int usec );
36 int ftp_send_pasv( LIBOFTP *ftp );
37 int ftp_openport_pasv( LIBOFTP *ftp );
38 int ftp_getready_active( LIBOFTP *ftp, const char *fname, const char *cmd );
39 int ftp_getready_pasv( LIBOFTP *ftp, const char *fname, const char *cmd );
40
41
42 #if defined( __QNX__ ) && !defined( __QNXNTO__ )
43 int snprintf( char *, int, char *, ... );
44 #endif
45
46
47 /***** Inline functions *****************************************************/
48
49
50 #endif

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