source:
benchmark/io/http/options.hfa@
101cc3a
      
      | Last change on this file since 101cc3a was 56c44dc, checked in by , 5 years ago | |
|---|---|
            
  | 
        |
| File size: 487 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 { | |
| [2ecbd7b] | 10 | struct { | 
| 11 | int open_flags; | |
| 12 | uint32_t hash_seed; | |
| 13 | size_t size; | |
| 14 | bool list; | |
| 15 | bool fixed_fds; | |
| 16 | } file_cache; | |
| 17 | ||
| 18 | struct { | |
| 19 | int port; | |
| 20 | int backlog; | |
| [03ed863] | 21 | int buflen; | 
| [2ecbd7b] | 22 | } socket; | 
| 23 | ||
| 24 | struct { | |
| 25 | int nprocs; | |
| 26 | int nworkers; | |
| [d11d6eb] | 27 | io_context_params params; | 
| [2ecbd7b] | 28 | bool procstats; | 
| 29 | bool viewhalts; | |
| 30 | cluster * instance; | |
| 31 | } clopts; | |
| [0aec496] | 32 | }; | 
| 33 | ||
| [2ecbd7b] | 34 | extern Options options; | 
| 35 | ||
| 36 | const char * parse_options( int argc, char * argv[] ); | 
  Note:
 See   TracBrowser
 for help on using the repository browser.