source: benchmark/io/http/options.hfa @ 8c58e73

ADTast-experimentalpthread-emulationqualifiedEnum
Last change on this file since 8c58e73 was 8c58e73, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Removed webserver feature to have multiple clusters (it never actually worked)

  • Property mode set to 100644
File size: 642 bytes
RevLine 
[0aec496]1#pragma once
2
3#include <stdint.h>
4
[d11d6eb]5#include <kernel.hfa>
6
[0aec496]7struct cluster;
8
9struct Options {
[481ee28]10        bool log;
[2cd784a]11        bool stats;
[40a64f78]12        bool interactive;
13        const char * reopen_stdout;
14        const char * reopen_stderr;
[5ad381b]15
[2ecbd7b]16        struct {
[b57db73]17                const char * path;
[2ecbd7b]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;
[03ed863]28                int buflen;
[7f0ac12]29                bool reuseport;
[2ecbd7b]30        } socket;
31
32        struct {
33                int nprocs;
34                int nworkers;
[d11d6eb]35                io_context_params params;
[2ecbd7b]36                bool procstats;
37                bool viewhalts;
[8c58e73]38                cluster * instance;
39                size_t    thrd_cnt;
[2ecbd7b]40        } clopts;
[0aec496]41};
42
[2ecbd7b]43extern Options options;
44
[b57db73]45void parse_options( int argc, char * argv[] );
Note: See TracBrowser for help on using the repository browser.