Rev 4206 | Rev 4220 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4206 | Rev 4209 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | ;; Version 2, June 1991 ;; |
11 | ;; Version 2, June 1991 ;; |
12 | ;; ;; |
12 | ;; ;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line -... | Line 14... | ||
- | 14 | ||
14 | 15 | ||
15 | 16 | ; Bitflags for http_msg.flags |
|
16 | FLAG_HTTP11 = 1 shl 0 |
17 | FLAG_HTTP11 = 1 shl 0 |
17 | FLAG_GOT_HEADER = 1 shl 1 |
18 | FLAG_GOT_HEADER = 1 shl 1 |
18 | FLAG_GOT_ALL_DATA = 1 shl 2 |
19 | FLAG_GOT_ALL_DATA = 1 shl 2 |
19 | FLAG_CONTENT_LENGTH = 1 shl 3 |
20 | FLAG_CONTENT_LENGTH = 1 shl 3 |
20 | FLAG_CHUNKED = 1 shl 4 |
- | |
21 | FLAG_CONNECTED = 1 shl 5 |
21 | FLAG_CHUNKED = 1 shl 4 |
22 | 22 | FLAG_CONNECTED = 1 shl 5 |
|
23 | ; error flags go into the upper word |
23 | ; ERROR flags go into the upper word |
24 | FLAG_INVALID_HEADER = 1 shl 16 |
24 | FLAG_INVALID_HEADER = 1 shl 16 |
25 | FLAG_NO_RAM = 1 shl 17 |
25 | FLAG_NO_RAM = 1 shl 17 |
Line 26... | Line 26... | ||
26 | FLAG_SOCKET_ERROR = 1 shl 18 |
26 | FLAG_SOCKET_ERROR = 1 shl 18 |
- | 27 | FLAG_TIMEOUT_ERROR = 1 shl 19 |
|
27 | FLAG_TIMEOUT_ERROR = 1 shl 19 |
28 | |
28 | 29 | struc http_msg { |
|
29 | struc http_msg { |
30 | |
30 | .socket dd ? |
31 | .socket dd ? ; socket on which the actual transfer happens |
31 | .flags dd ? |
32 | .flags dd ? ; flags, reflects status of the transfer using bitflags |
32 | .write_ptr dd ? |
33 | .write_ptr dd ? ; internal use only (where to write new data in buffer) |
33 | .buffer_length dd ? |
34 | .buffer_length dd ? ; internal use only (number of available bytes in buffer) |
34 | .chunk_ptr dd ? |
35 | .chunk_ptr dd ? ; internal use only (where the next chunk begins) |
35 | .timestamp dd ? |
36 | .timestamp dd ? ; internal use only (when last data was received) |
36 | .status dd ? |
37 | .status dd ? ; HTTP status |
37 | .header_length dd ? |
38 | .header_length dd ? ; length of HTTP header |
- | 39 | .content_length dd ? ; length of HTTP content |
|
38 | .content_length dd ? |
40 | .content_received dd ? ; number of currently received content bytes |
39 | .content_received dd ? |
41 | .data: |