source: benchmark/io/http/options.hfa@ 91aa5ab

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 91aa5ab was 56c44dc, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Worker now each do their own accept4

  • Property mode set to 100644
File size: 487 bytes
Line 
1#pragma once
2
3#include <stdint.h>
4
5#include <kernel.hfa>
6
7struct cluster;
8
9struct Options {
10 struct {
11 int open_flags;
12 uint32_t hash_seed;
13 size_t size;
14 bool list;
15 bool fixed_fds;
16 } file_cache;
17
18 struct {
19 int port;
20 int backlog;
21 int buflen;
22 } socket;
23
24 struct {
25 int nprocs;
26 int nworkers;
27 io_context_params params;
28 bool procstats;
29 bool viewhalts;
30 cluster * instance;
31 } clopts;
32};
33
34extern Options options;
35
36const char * parse_options( int argc, char * argv[] );
Note: See TracBrowser for help on using the repository browser.