source: benchmark/io/http/options.hfa@ dcad80a

ADT ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since dcad80a was 2cd784a, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

update http server according to last push

  • Property mode set to 100644
File size: 589 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;
[5ad381b]12
[2ecbd7b]13 struct {
[b57db73]14 const char * path;
[2ecbd7b]15 int open_flags;
16 uint32_t hash_seed;
17 size_t size;
18 bool list;
19 bool fixed_fds;
20 } file_cache;
21
22 struct {
23 int port;
24 int backlog;
[03ed863]25 int buflen;
[2ecbd7b]26 } socket;
27
28 struct {
[348f81d5]29 int nclusters;
[2ecbd7b]30 int nprocs;
31 int nworkers;
[d11d6eb]32 io_context_params params;
[2ecbd7b]33 bool procstats;
34 bool viewhalts;
[348f81d5]35 cluster ** instance;
36 size_t * thrd_cnt;
37 size_t cltr_cnt;
[2ecbd7b]38 } clopts;
[0aec496]39};
40
[2ecbd7b]41extern Options options;
42
[b57db73]43void parse_options( int argc, char * argv[] );
Note: See TracBrowser for help on using the repository browser.