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