ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since 53e4562 was
c82af9f,
checked in by Thierry Delisle <tdelisle@…>, 4 years ago
|
Moved sendfile to protocol.cfa to reduce compilation time
|
-
Property mode set to
100644
|
File size:
343 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 | |
---|
| 12 | int answer_error( int fd, HttpCode code ); |
---|
| 13 | int answer_header( int fd, size_t size ); |
---|
| 14 | |
---|
[c82af9f] | 15 | [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len); |
---|
| 16 | |
---|
| 17 | void sendfile( int pipe[2], int fd, int ans_fd, size_t count ); |
---|
Note: See
TracBrowser
for help on using the repository browser.