source: benchmark/io/http/worker.hfa @ 8e3034d

arm-ehjacob/cs343-translationnew-ast-unique-expr
Last change on this file since 8e3034d was 8e3034d, checked in by Thierry Delisle <tdelisle@…>, 15 months ago

Every worker now does it's own accept.

  • Property mode set to 100644
File size: 497 bytes
Line 
1#pragma once
2
3#include <thread.hfa>
4
5extern "C" {
6        #include <sys/socket.h>
7}
8
9#include "channel.hfa"
10
11extern channel & wait_connect;
12
13//=============================================================================================
14// Worker Thread
15//=============================================================================================
16
17thread Worker {
18        int pipe[2];
19        int sockfd;
20        struct sockaddr * addr;
21        socklen_t * addrlen;
22        int flags;
23};
24void ?{}( Worker & this);
25void main( Worker & );
Note: See TracBrowser for help on using the repository browser.