Ignore:
Timestamp:
Jan 9, 2021, 4:27:57 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
561dd26
Parents:
35fd2c4
Message:

Added prints.
Naive implementation of cancel.
Server now shutdown cleanly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/protocol.hfa

    r35fd2c4 rece0e80  
    11#pragma once
     2
     3struct io_cancellation;
    24
    35enum HttpCode {
     
    1517int answer_header( int fd, size_t size );
    1618
    17 [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len);
     19[HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len, io_cancellation *);
    1820
    1921void sendfile( int pipe[2], int fd, int ans_fd, size_t count );
Note: See TracChangeset for help on using the changeset viewer.