source: benchmark/io/http/options.hfa @ 4026d1be

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

update http server according to last push

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