ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | Last change
 on this file since 0797198 was             2ecbd7b, checked in by Thierry Delisle <tdelisle@…>, 5 years ago | 
        
          | 
Implemented more options and moved them to their own file
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            373 bytes | 
      
      
| Rev | Line |  | 
|---|
| [0aec496] | 1 | #pragma once | 
|---|
|  | 2 |  | 
|---|
|  | 3 | enum HttpCode { | 
|---|
|  | 4 | OK200 = 0, | 
|---|
|  | 5 | E400, | 
|---|
|  | 6 | E404, | 
|---|
|  | 7 | E413, | 
|---|
|  | 8 | E414, | 
|---|
|  | 9 | KNOWN_CODES | 
|---|
|  | 10 | }; | 
|---|
|  | 11 |  | 
|---|
| [2ecbd7b] | 12 | int code_val(HttpCode code); | 
|---|
|  | 13 |  | 
|---|
| [0aec496] | 14 | int answer_error( int fd, HttpCode code ); | 
|---|
|  | 15 | int answer_header( int fd, size_t size ); | 
|---|
|  | 16 |  | 
|---|
| [c82af9f] | 17 | [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len); | 
|---|
|  | 18 |  | 
|---|
|  | 19 | void sendfile( int pipe[2], int fd, int ans_fd, size_t count ); | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.