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