plebble
dfs.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 #include "daemon.h"
18 #include "protocol.h"
19 
us::gov::id::peer_t::role_peer
@ role_peer
Definition: peer_t.h:53
anonymous_namespace{daemon.cpp}::age
string age(chrono::system_clock::time_point time)
Definition: daemon.cpp:263
cfg.h
us::is_ko
static bool is_ko(const std::string &s)
Definition: ko.h:30
evidence.h
us::gov::cash::hash_t
hasher_t::value_type hash_t
Definition: app.h:55
us::gov::socket::client
Definition: client.h:44
us.ko
Definition: ko.java:20
us::gov::peer::mezzanine::mezzanine
mezzanine(daemon *)
Definition: daemon.cpp:31
us::gov::socket::datagram::decode_sequence
uint16_t decode_sequence() const
us::gov::dfs::mezzanine::mezzanine
mezzanine(daemon *)
Definition: daemon.cpp:28
cfg0.h
protocol.h
log_start
#define log_start
Definition: gov.h:85
anonymous_namespace{daemon.cpp}::duration_str
string duration_str(chrono::milliseconds time)
Definition: daemon.cpp:247
us::gov::dfs::peer_t
relay::peer_t peer_t
Definition: daemon.h:31
us::gov::crypto::ripemd160::value_type
Definition: ripemd160.h:38
unlikely
#define unlikely(x)
Definition: likely.h:30
us::gov::peer::peer_t::connect
ko connect(uint32_t host, uint16_t port, uint16_t pport, role_t, bool block) override
c
us::gov::dfs::daemon c
Definition: daemon.cpp:26
us.pair.first
f first
Definition: pair.java:20
us::gov::relay
Definition: daemon.h:29
us::gov::peer
Definition: daemon.h:40
us::gov::io::read_file
bool read_file(const string &filename, vector< unsigned char > &)
Definition: cfg0.cpp:150
us::gov::socket::client::sendq
queue_t * sendq
Definition: client.h:108
anonymous_namespace{daemon.cpp}::tuple_for_each
void tuple_for_each(const Container &c, Fun fun)
Definition: daemon.cpp:242
daemon.h
us::gov::socket::datagram
Definition: datagram.h:44
us::gov::auth::daemon
id::daemon daemon
Definition: daemon.h:25
us::gov::id::peer_t::pubkey
pub_t pubkey
Definition: peer_t.h:117
us::gov::id
Definition: daemon.h:24
us::gov.protocol.gov_dfs_file_response
static final int gov_dfs_file_response
Definition: protocol.java:54
us::gov::socket
Definition: busyled.h:23
us::gov::socket::datagram::service
uint16_t service
Definition: datagram.h:200
us::gov::io::cfg0::file_exists
static bool file_exists(const string &f)
us::gov::engine::auth::pub_t
peer::daemon::pub_t pub_t
Definition: auth_app.h:53
us::gov::crypto::ripemd160::digest
static value_type digest(const vector< unsigned char > &buf)
us.pair.second
s second
Definition: pair.java:21
us::gov::peer::peer_t
Definition: peer_t.h:38
us::gov::id::daemon
Definition: daemon.h:28
us::gov
Definition: daemon.h:22
peer_t.h
us::gov::dfs::daemon
Definition: daemon.h:44
c
Definition: client.cpp:417
us::ok
static constexpr ko ok
Definition: ko.h:28
us::gov.protocol.gov_dfs_file_request
static final int gov_dfs_file_request
Definition: protocol.java:53
us::gov::socket::peer_t
Definition: peer_t.h:28
likely
#define likely(x)
Definition: likely.h:29
us::gov::socket::datagram.size
long size()
Definition: datagram.cs:178
us::gov::socket::datagram::parse
ko parse(vector< t > &content) const
Definition: datagram.h:170
us::gov::dfs
Definition: daemon.h:29
us::gov::id::peer_t::process_work
bool process_work(datagram *d)
std
Definition: app.h:380
us::gov::crypto::ec::keys::pub_t::hash
const hash_t & hash() const
Definition: ec.cpp:105
us::gov::socket::daemon
Definition: daemon.h:32
us::gov::protocol::is_evidence
static bool is_evidence(const uint16_t &i)
Definition: protocol.h:25
us::gov::socket::datagram::parse_string
string parse_string() const
us::gov::relay::evidence
Definition: evidence.h:31
us.pair
Definition: pair.java:19
gov.h
us::gov::id::peer_t
Definition: peer_t.h:35
us::gov::peer::daemon
Definition: daemon.h:51
us::gov::io::cfg0::file_size
static uint32_t file_size(const string &f)
log
#define log
Definition: gov.h:83
LOGDIR
#define LOGDIR
Definition: config.h:12
us::gov::bgtask
Definition: bgtask.h:31
us::gov::relay::daemon
Definition: daemon.h:35