source:
benchmark/io/http/options.hfa@
03ecdcf
| Last change on this file since 03ecdcf was 481ee28, checked in by , 5 years ago | |
|---|---|
|
|
| File size: 499 bytes | |
| Rev | Line | |
|---|---|---|
| [0aec496] | 1 | #pragma once |
| 2 | ||
| 3 | #include <stdint.h> | |
| 4 | ||
| [d11d6eb] | 5 | #include <kernel.hfa> |
| 6 | ||
| [0aec496] | 7 | struct cluster; |
| 8 | ||
| 9 | struct Options { | |
| [481ee28] | 10 | bool log; |
| [5ad381b] | 11 | |
| [2ecbd7b] | 12 | struct { |
| 13 | int open_flags; | |
| 14 | uint32_t hash_seed; | |
| 15 | size_t size; | |
| 16 | bool list; | |
| 17 | bool fixed_fds; | |
| 18 | } file_cache; | |
| 19 | ||
| 20 | struct { | |
| 21 | int port; | |
| 22 | int backlog; | |
| [03ed863] | 23 | int buflen; |
| [2ecbd7b] | 24 | } socket; |
| 25 | ||
| 26 | struct { | |
| 27 | int nprocs; | |
| 28 | int nworkers; | |
| [d11d6eb] | 29 | io_context_params params; |
| [2ecbd7b] | 30 | bool procstats; |
| 31 | bool viewhalts; | |
| 32 | cluster * instance; | |
| 33 | } clopts; | |
| [0aec496] | 34 | }; |
| 35 | ||
| [2ecbd7b] | 36 | extern Options options; |
| 37 | ||
| 38 | const char * parse_options( int argc, char * argv[] ); |
Note:
See TracBrowser
for help on using the repository browser.