source: benchmark/io/http/options.hfa@ 6e2b04e

ADT ast-experimental pthread-emulation qualifiedEnum
Last change on this file since 6e2b04e was 86c12d65, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Checkpoint of the broken version of reuseport

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