Subversion Repositories Kolibri OS

Rev

Rev 4158 | Rev 4205 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4158 hidnplayr 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2013. All rights reserved.    ;;
4
;; Distributed under terms of the GNU General Public License       ;;
5
;;                                                                 ;;
6
;;  HTTP library for KolibriOS                                     ;;
7
;;                                                                 ;;
8
;;   Written by hidnplayr@kolibrios.org                            ;;
9
;;                                                                 ;;
10
;;         GNU GENERAL PUBLIC LICENSE                              ;;
11
;;          Version 2, June 1991                                   ;;
12
;;                                                                 ;;
13
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14
 
15
 
16
FLAG_HTTP11             = 1 shl 0
17
FLAG_GOT_HEADER         = 1 shl 1
18
FLAG_GOT_DATA           = 1 shl 2
19
FLAG_CONTENT_LENGTH     = 1 shl 3
20
FLAG_CHUNKED            = 1 shl 4
21
 
22
; error flags go into the upper word
23
FLAG_INVALID_HEADER     = 1 shl 16
24
FLAG_NO_RAM             = 1 shl 17
25
FLAG_SOCKET_ERROR       = 1 shl 18
26
 
27
struc http_msg {
28
        .socket         dd ?
29
        .flags          dd ?
30
        .write_ptr      dd ?
31
        .buffer_length  dd ?
32
        .chunk_ptr      dd ?
33
 
34
        .status         dd ?
35
        .header_length  dd ?
36
        .content_length dd ?
4168 hidnplayr 37
        .content_received   dd ?
4158 hidnplayr 38
        .data:
39
}