source: benchmark/io/http/options.hfa @ f3e87af

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

httpforall now only loads file if explicit path is given.

  • Property mode set to 100644
File size: 512 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
12        struct {
13                const char * path;
14                int open_flags;
15                uint32_t hash_seed;
16                size_t size;
17                bool list;
18                bool fixed_fds;
19        } file_cache;
20
21        struct {
22                int port;
23                int backlog;
24                int buflen;
25        } socket;
26
27        struct {
28                int nprocs;
29                int nworkers;
30                io_context_params params;
31                bool procstats;
32                bool viewhalts;
33                cluster * instance;
34        } clopts;
35};
36
37extern Options options;
38
39void parse_options( int argc, char * argv[] );
Note: See TracBrowser for help on using the repository browser.