source: benchmark/io/http/worker.hfa @ d2b5d2d

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d2b5d2d was 0aec496, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

First attempt at webserver, no option support yet

  • Property mode set to 100644
File size: 859 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};
20void ?{}( Worker & this );
21void main( Worker & );
22
23//=============================================================================================
24// Acceptor Thread
25//=============================================================================================
26thread Acceptor {
27        int sockfd;
28        struct sockaddr * addr;
29        socklen_t * addrlen;
30        int flags;
31};
32
33void ?{}( Acceptor & this, int sockfd, struct sockaddr * addr, socklen_t * addrlen, int flags );
34void main( Acceptor & this );
Note: See TracBrowser for help on using the repository browser.