Subversion Repositories Kolibri OS

Rev

Rev 5499 | Rev 5576 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5499 Rev 5534
Line 6... Line 6...
6
dword http_lib_init       = #aLib_init;
6
dword http_lib_init       = #aLib_init;
7
dword http_get            = #aHTTPget;
7
dword http_get            = #aHTTPget;
8
dword http_head           = #aHTTPhead;
8
dword http_head           = #aHTTPhead;
9
dword http_post           = #aHTTPpost;
9
dword http_post           = #aHTTPpost;
10
dword http_find_header_field = #aFHF;
10
dword http_find_header_field = #aFHF;
-
 
11
dword http_send           = #aHTTPsend;
11
dword http_process        = #aHTTPprocess;
12
dword http_receive        = #aHTTPreceive;
-
 
13
dword http_disconnect     = #aHTTPdisconnect;
12
dword http_free           = #aHTTPfree;
14
dword http_free           = #aHTTPfree;
13
dword http_stop           = #aHTTPstop;
-
 
14
dword uri_escape          = #aURIescape;
15
dword uri_escape          = #aURIescape;
15
dword uri_unescape        = #aURIunescape;
16
dword uri_unescape        = #aURIunescape;
16
$DD 2 dup 0
17
$DD 2 dup 0
Line 17... Line 18...
17
 
18
 
18
char aLib_init[9]              = "lib_init\0";
19
char aLib_init[9]              = "lib_init\0";
19
char aHTTPget[4]               = "get\0";
20
char aHTTPget[4]               = "get\0";
20
char aHTTPhead[5]              = "head\0";
21
char aHTTPhead[5]              = "head\0";
21
char aHTTPpost[5]              = "post\0";
22
char aHTTPpost[5]              = "post\0";
-
 
23
char aFHF[18]                  = "find_header_field\0";
22
char aFHF[18]                  = "find_header_field\0";
24
char aHTTPsend[5]              = "send\0";
-
 
25
char aHTTPreceive[8]           = "receive\0";
23
char aHTTPprocess[8]           = "process\0";
26
char aHTTPdisconnect[11]       = "disconnect\0";
24
char aHTTPfree[5]              = "free\0";
-
 
25
char aHTTPstop[5]              = "stop\0";
27
char aHTTPfree[5]              = "free\0";
26
char aURIescape[7]             = "escape\0";
28
char aURIescape[7]             = "escape\0";
Line -... Line 29...
-
 
29
char aURIunescape[9]           = "unescape\0";
27
char aURIunescape[9]           = "unescape\0";
30
 
28
 
31
// status flags
29
#define FLAG_HTTP11             1 << 0
32
#define FLAG_HTTP11             1 << 0
30
#define FLAG_GOT_HEADER         1 << 1
33
#define FLAG_GOT_HEADER         1 << 1
31
#define FLAG_GOT_ALL_DATA       1 << 2
34
#define FLAG_GOT_ALL_DATA       1 << 2
32
#define FLAG_CONTENT_LENGTH     1 << 3
35
#define FLAG_CONTENT_LENGTH     1 << 3
Line -... Line 36...
-
 
36
#define FLAG_CHUNKED            1 << 4
-
 
37
#define FLAG_CONNECTED          1 << 5
-
 
38
 
-
 
39
// user flags
33
#define FLAG_CHUNKED            1 << 4
40
#define FLAG_KEEPALIVE          1 << 8
34
#define FLAG_CONNECTED          1 << 5
41
#define FLAG_MULTIBUFF			1 << 9
35
 
42
 
36
// error flags go into the upper word
43
// error flags
37
#define FLAG_INVALID_HEADER     1 << 16
44
#define FLAG_INVALID_HEADER     1 << 16
38
#define FLAG_NO_RAM             1 << 17
45
#define FLAG_NO_RAM             1 << 17