Debian Codegraph @

WWW/Library/Implementation/HTFTP.h

raw
1 /* FTP access module for libwww
2 FTP ACCESS FUNCTIONS
3
4 This isn't really a valid protocol module -- it is lumped together with HTFile . That
5 could be changed easily.
6
7 Author: Tim Berners-Lee. Public Domain. Please mail changes to [email protected]
8
9 */
10 #ifndef HTFTP_H
11 #define HTFTP_H
12
13 #include <HTAnchor.h>
14 #include <HTStream.h>
15 #include <HTParse.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 #define FILE_BY_NAME 0
21 #define FILE_BY_TYPE 1
22 #define FILE_BY_SIZE 2
23 #define FILE_BY_DATE 3
24 extern int HTfileSortMethod; /* specifies the method of sorting */
25
26 /* PUBLIC HTVMS_name()
27 * CONVERTS WWW name into a VMS name
28 * ON ENTRY:
29 * nn Node Name (optional)
30 * fn WWW file name
31 *
32 * ON EXIT:
33 * returns vms file specification
34 *
35 * Bug: Returns pointer to static -- non-reentrant
36 */
37 extern char *HTVMS_name(const char *nn,
38 const char *fn);
39
40 /*
41
42 Retrieve File from Server
43
44 ON EXIT,
45
46 returns Socket number for file if good.<0 if bad.
47
48 */
49 extern int HTFTPLoad(const char *name,
50 HTParentAnchor *anchor,
51 HTFormat format_out,
52 HTStream *sink);
53
54 /*
55 * This function frees any user entered password, so that
56 * it must be entered again for a future request. - FM
57 */
58 extern void HTClearFTPPassword(void);
59
60 /*
61
62 Return Host Name
63
64 */
65 extern const char *HTHostName(void);
66
67 #ifdef __cplusplus
68 }
69 #endif
70 #endif