forked from bakagirl/Arachne-WWW-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINTERNET.H
82 lines (63 loc) · 2.21 KB
/
INTERNET.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// ========================================================================
// Internet function prototypes
// (c)1997-1999 Michael Polak, Arachne Labs
// ========================================================================
#include "url.h"
int openhttp(struct Url *url,struct HTTPrecord *cache);
void closehttp(struct HTTPrecord *cache);
#ifndef NOTCPIP
int xfinger(struct Url *url, struct HTTPrecord *cache, char *selector);
int xpopdump(struct Url *url, char dele, char logfile);
int xsendmail(struct Url *url, char helo, char logfile);
int ftpsession(struct Url *url,struct HTTPrecord *cache,char *uploadfile);
void Download(struct HTTPrecord *cache);
void Backgroundhttp(void);
char GoBackground(struct HTTPrecord *cache);
void FinishBackground(char mode);
#ifdef POSIX
int tickhttp(struct HTTPrecord *cache, char *buf, int sockfd);
#else
int tickhttp(struct HTTPrecord *cache, char *buf,tcp_Socket *socket);
#endif
void DNSerr(char *host);
#ifdef WATTCP
//these functions and variables are used only by WATTCP
void free_socket(void);
int locport(void);
void sockmsg(int status,int snum);
dataHandler_t resetport(void);
//dataHandler_t webserver(void);
extern tcp_Socket *socket;
//extern tcp_Socket *websocket;
extern tcp_Socket *sock[2];
extern int socknum;
#endif
struct Http_parameters
{
char referer;
char useproxy;
char keepalive;
char acceptcookies;
//!!glennmcc: begin Dec 11,2001---- made it configurable y/n
// added to fix "HTTPS verifying images" loop by trying HTTP instead
char https2http;
//!!glennmcc: end
//!!glennmcc: begin May 03, 2002
// added to optionally "ignore" <script> tag
// (defaults to No if "IgnoreJS Yes" line is not in Arachne.cfg)
//char ignorejs;
//!!glennmcc: end
//!!glennmcc: begin July 14, 2003
// added to optionally "ignore" <base href=> tag
// (defaults to No if "IgnoreBaseHref Yes" line is not in Arachne.cfg)
char ignorebasehref;
//!!glennmcc: end
//!!glennmcc: July 14, 2005
//char alwaysusecfgcolors;
//!!glennmcc: end
};
extern struct Http_parameters http_parameters;
// TcpIdleFunc should be called from all waiting loops
extern char GlobalLogoStyle; //SDL
int TcpIdleFunc(void); //SDL
#endif