Changes in benchmark/io/http/protocol.hfa [ed2cb3c:b57db73]
- File:
-
- 1 edited
-
benchmark/io/http/protocol.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/protocol.hfa
red2cb3c rb57db73 1 1 #pragma once 2 3 struct io_cancellation; 2 4 3 5 enum HttpCode { 4 6 OK200 = 0, 5 OK200_PlainText,6 7 E400, 7 8 E404, … … 17 18 int answer_error( int fd, HttpCode code ); 18 19 int answer_header( int fd, size_t size ); 19 int answer_plain text( int fd);20 int answer_plain( int fd, char buffer [], size_t size ); 20 21 int answer_empty( int fd ); 21 22 22 [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len );23 [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len, io_cancellation *); 23 24 24 25 int sendfile( int pipe[2], int fd, int ans_fd, size_t count );
Note:
See TracChangeset
for help on using the changeset viewer.