plebble
cfg.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_3129cf05f2fadec9ea29b790fb8f5a4e5429305f17c8ba082a9800a1f455dbe1
18 #define USGOV_3129cf05f2fadec9ea29b790fb8f5a4e5429305f17c8ba082a9800a1f455dbe1
19 
20 #include <string>
21 #include <vector>
23 #include "cfg1.h"
24 
25 namespace us { namespace gov {
26 namespace io {
27 using namespace std;
28 
29 struct cfg: cfg1 {
30  typedef cfg1 b;
32 
33  cfg(const keys_t::priv_t& privk, const string& home, vector<pair<uint32_t,uint16_t>>&& seed_nodes);
34  cfg(const cfg& other);
35  virtual ~cfg();
36 
37  static vector<pair<pubkeyh_t,pair<uint32_t,uint16_t>>> parse_nodes_file2(const string& absfile);
38  static void parse_nodes_file(vector<pair<uint32_t,uint16_t>>&, const string& absfile);
39  static pair<uint32_t,uint16_t> parse_host(const string& addrport);
40  static pair<ko,cfg*> load(const string& home,bool gen);
41  vector<pair<uint32_t,uint16_t>> seed_nodes;
42 };
43 
44 typedef cfg cfg_daemon;
45 
46 }
47 }}
48 
49 #endif
cfg.h
us::gov::io::cfg
Definition: cfg.h:29
us::gov::io::cfg::b
cfg1 b
Definition: cfg.h:30
us::gov::io::cfg_daemon
cfg cfg_daemon
Definition: cfg.h:44
us::gov::io::cfg::cfg
cfg(const keys_t::priv_t &privk, const string &home, vector< pair< uint32_t, uint16_t >> &&seed_nodes)
us::gov::io::cfg::load
static pair< ko, cfg * > load(const string &home, bool gen)
us.ko
Definition: ko.java:20
us
Definition: daemon.h:22
us::gov::crypto::ripemd160::value_type
Definition: ripemd160.h:38
cfg1.h
us::gov::io::cfg::~cfg
virtual ~cfg()
us::gov::io::cfg::parse_nodes_file
static void parse_nodes_file(vector< pair< uint32_t, uint16_t >> &, const string &absfile)
CFG_PPORT
#define CFG_PPORT
Definition: config.h:32
us::gov::io::cfg1
Definition: cfg1.h:30
us::gov::socket::datagram::system_channel
static uint16_t system_channel
Definition: datagram.h:199
c
us::gov::io::cfg c
Definition: cfg.cpp:33
us::gov::crypto::ec::keys::priv_t
Definition: ec.h:77
us::gov::io::cfg::pubkeyh_t
crypto::ripemd160::value_type pubkeyh_t
Definition: cfg.h:31
us::gov::io::cfg::seed_nodes
vector< pair< uint32_t, uint16_t > > seed_nodes
Definition: cfg.h:41
us::gov::io
Definition: cfg.h:26
ripemd160.h
symmetric_encryption.h
us::gov::io::cfg::cfg
cfg(const cfg &other)
std
Definition: app.h:380
us::gov::io::cfg::parse_host
static pair< uint32_t, uint16_t > parse_host(const string &addrport)
us::gov::socket::client::is_valid_ip
static bool is_valid_ip(uint32_t)
us::gov::io::cfg::parse_nodes_file2
static vector< pair< pubkeyh_t, pair< uint32_t, uint16_t > > > parse_nodes_file2(const string &absfile)
us::gov::engine::pubkeyh_t
pubkey_t::hash_t pubkeyh_t
Definition: diff.h:41
us::gov::socket::client::ip4_encode
static uint32_t ip4_encode(const string &addr)
us.pair
Definition: pair.java:19
gov.h
client.h
log
#define log
Definition: gov.h:83