source: benchmark/io/http/options.hfa @ 266ecf1

arm-ehjacob/cs343-translationnew-ast-unique-expr
Last change on this file since 266ecf1 was 2cd784a, checked in by Thierry Delisle <tdelisle@…>, 9 months 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.