Communication header: initial "hello" sent between clients and servers when they first connect. More...
#include "comm.hpp"
Public Member Functions | |
void | set (const UUID &uuid, const EPS::EMode mode, const time_t eps_timestamp, const std::string &cipherhash, const IPv4Set &other_addresses, const IPv4 &address_eps=IPv4()) |
Set the CommHello2 fields. More... | |
CommHello2 (void) | |
Constructor. More... | |
CommHello2 (const UUID &uuid, const EPS::EMode mode, const time_t eps_timestamp, const std::string &cipherhash, const IPv4Set &other_addresses, const IPv4 &address_eps=IPv4()) | |
Constructor. More... | |
Public Attributes | |
CommHeader1 | header |
common header More... | |
uint8_t | mode |
uint32_t | address_eps |
eps address (or 0.0.0.0 if it hasn't yet been assigned) More... | |
uint32_t | other_addresses [MAX_NUMBER_OF_OTHER_ADDRESSES] |
other addresses this host can use (LAN, WAN, ...) in network byte order More... | |
uint32_t | eps_uptime |
timestamp when EPS was started (network byte order) More... | |
uint32_t | system_uptime |
timestamp when the system was started (network byte order) More... | |
char | version_str [20] |
text representation of the version string More... | |
char | uuid_str [40] |
uuid More... | |
char | hostname_str [40] |
first 40 chars of the hostname (which can be up to 255 bytes long) More... | |
char | cipherhash_str [20] |
nonesense hash used to quickly determine if the cipher key and iv are correctly set More... | |
char | os_version_str [40] |
version string of the operating system More... | |
Static Public Attributes | |
static const size_t | max_number_of_other_addresses |
Communication header: initial "hello" sent between clients and servers when they first connect.
EPS::CommHello2::CommHello2 | ( | void | ) |
Constructor.
EPS::CommHello2::CommHello2 | ( | const UUID & | uuid, |
const EPS::EMode | mode, | ||
const time_t | eps_timestamp, | ||
const std::string & | cipherhash, | ||
const IPv4Set & | other_addresses, | ||
const IPv4 & | address_eps = IPv4() |
||
) |
Constructor.
void EPS::CommHello2::set | ( | const UUID & | uuid, |
const EPS::EMode | mode, | ||
const time_t | eps_timestamp, | ||
const std::string & | cipherhash, | ||
const IPv4Set & | other_addresses, | ||
const IPv4 & | address_eps = IPv4() |
||
) |
Set the CommHello2 fields.
uint32_t EPS::CommHello2::address_eps |
eps address (or 0.0.0.0 if it hasn't yet been assigned)
char EPS::CommHello2::cipherhash_str[20] |
nonesense hash used to quickly determine if the cipher key and iv are correctly set
uint32_t EPS::CommHello2::eps_uptime |
timestamp when EPS was started (network byte order)
CommHeader1 EPS::CommHello2::header |
common header
char EPS::CommHello2::hostname_str[40] |
first 40 chars of the hostname (which can be up to 255 bytes long)
|
static |
uint8_t EPS::CommHello2::mode |
char EPS::CommHello2::os_version_str[40] |
version string of the operating system
uint32_t EPS::CommHello2::other_addresses[MAX_NUMBER_OF_OTHER_ADDRESSES] |
other addresses this host can use (LAN, WAN, ...) in network byte order
uint32_t EPS::CommHello2::system_uptime |
timestamp when the system was started (network byte order)
char EPS::CommHello2::uuid_str[40] |
uuid
char EPS::CommHello2::version_str[20] |
text representation of the version string