source: benchmark/io/http/protocol.hfa@ 4c4d854

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum stuck-waitfor-destruct
Last change on this file since 4c4d854 was 4f762d3, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Fix httpforall after changes to I/O

  • Property mode set to 100644
File size: 471 bytes
Line 
1#pragma once
2
3enum HttpCode {
4 OK200 = 0,
5 E400,
6 E404,
7 E405,
8 E408,
9 E413,
10 E414,
11 KNOWN_CODES
12};
13
14int code_val(HttpCode code);
15
16int answer_error( int fd, HttpCode code );
17int answer_header( int fd, size_t size );
18int answer_plain( int fd, char buffer [], size_t size );
19int answer_empty( int fd );
20
21[HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len);
22
23int sendfile( int pipe[2], int fd, int ans_fd, size_t count );
Note: See TracBrowser for help on using the repository browser.