plebble
params.h
Go to the documentation of this file.
1 /*
2 -------------------------------------------------------------------------------
3  PLEBBLE
4 -------------------------------------------------------------------------------
5  Copyright (C) 2019-2020 KATLAS Technology. (http://katlastechnology.com)
6  Copyright (C) 2017-2020 Marcos Mayorga. (mm@mm-studios.com)
7 
8  This file is part of our Plebble(R) Platform.
9 
10  The code below cannot be copied, used for any purpose other than the one
11  agreed and/or distributed without the express permission of
12  KATLAS Technology.
13 -------------------------------------------------------------------------------
14 
15 
16 */
17 #ifndef USGOV_890591cd833a8e491955a276e2495a2999883f6f11ef57a0d45104bbd0ba2250
18 #define USGOV_890591cd833a8e491955a276e2495a2999883f6f11ef57a0d45104bbd0ba2250
19 
20 #include <string>
21 #include <us/gov/config.h>
22 #include "shell_args.h"
23 
24 namespace us{ namespace gov {
25 namespace io {
26 using namespace std;
27 
28 struct params {
29  params();
30  params(const shell_args&);
31  //params(const params&);
32 
33  string get_home_gov() const;
34  string get_home_gov_rpc_client() const;
35  string get_home() const;
36  string get_status_file() const;
37  void dump(ostream& os) const;
38  void rewrite_cmd();
39 
40  uint16_t channel{CFG_CHANNEL};
41  string homedir;
42  uint16_t port{CFG_PORT};
43  uint16_t pport{CFG_PPORT};
44  uint8_t edges{12};
45  uint8_t devices{2};
46  uint8_t workers;
47  bool daemon{false};
48  bool shell{false};
49  string sysophost{"127.0.0.1"};
50  bool ba{false};
51  bool dot{false};
52  bool force_seeds{false};
53  bool daemon_encrypt_protocol{false};
54  string cmd;
56  bool verbose{false};
57  bool status_file{false};
58  bool rpc__connect_for_recv{true};
59  bool rpc__stop_on_disconnection{true};
60 };
61 
62 }
63 }}
64 
65 #endif
us
Definition: daemon.h:22
shell_args.h
us::gov::io::params::get_home
string get_home() const
us::gov::io::params::homedir
string homedir
Definition: params.h:41
CFG_PPORT
#define CFG_PPORT
Definition: config.h:32
us::gov::io::params
Definition: params.h:28
us::gov::auth::daemon
id::daemon daemon
Definition: daemon.h:25
us::gov::io::params::dump
void dump(ostream &os) const
us::gov::io::params::get_home_gov
string get_home_gov() const
us::gov
Definition: daemon.h:22
us::gov::io::params::args
shell_args args
Definition: params.h:55
us::gov::io
Definition: cfg.h:26
us::gov::io::params::params
params(const shell_args &)
us::gov::io::params::params
params()
us::gov::io::params::workers
uint8_t workers
Definition: params.h:46
CFG_PORT
#define CFG_PORT
Definition: config.h:31
us::gov::io::shell_args
Definition: shell_args.h:30
us::gov::io::params::rewrite_cmd
void rewrite_cmd()
c
us::gov::io::params c
Definition: params.cpp:22
std
Definition: app.h:380
us::gov::io::params::get_home_gov_rpc_client
string get_home_gov_rpc_client() const
params.h
us::gov::io::params::cmd
string cmd
Definition: params.h:54
us::gov::io::params::get_status_file
string get_status_file() const
config.h
DATADIR
#define DATADIR
Definition: config.h:20
gov.h
log
#define log
Definition: gov.h:83
LOGDIR
#define LOGDIR
Definition: config.h:12
TOPOLOGY
#define TOPOLOGY
Definition: gov.h:96
CFG_CHANNEL
#define CFG_CHANNEL
Definition: config.h:27