source:
benchmark/io/http/options.hfa@
c2df3031
| Last change on this file since c2df3031 was b57db73, checked in by , 5 years ago | |
|---|---|
|
|
| File size: 512 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 { |
| [b57db73] | 13 | const char * path; |
| [2ecbd7b] | 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; | |
| [03ed863] | 24 | int buflen; |
| [2ecbd7b] | 25 | } socket; |
| 26 | ||
| 27 | struct { | |
| 28 | int nprocs; | |
| 29 | int nworkers; | |
| [d11d6eb] | 30 | io_context_params params; |
| [2ecbd7b] | 31 | bool procstats; |
| 32 | bool viewhalts; | |
| 33 | cluster * instance; | |
| 34 | } clopts; | |
| [0aec496] | 35 | }; |
| 36 | ||
| [2ecbd7b] | 37 | extern Options options; |
| 38 | ||
| [b57db73] | 39 | void parse_options( int argc, char * argv[] ); |
Note:
See TracBrowser
for help on using the repository browser.