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 IPv4 &address_eth, const IPv4 &address_eps=IPv4()) |
| Set the CommHello1 fields. More... | |
| CommHello1 (void) | |
| Constructor. More... | |
| CommHello1 (const UUID &uuid, const EPS::EMode mode, const time_t eps_timestamp, const std::string &cipherhash, const IPv4 &address_eth, const IPv4 &address_eps=IPv4()) | |
| Constructor. More... | |
Public Attributes | |
| CommHeader1 | header |
| common header More... | |
| uint8_t | mode |
| uint32_t | address_eth |
| ethernet (non-EPS) address (network byte order) More... | |
| uint32_t | address_eps |
| eps address (or 0.0.0.0 if it hasn't yet been assigned) 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... | |
Communication header: initial "hello" sent between clients and servers when they first connect.
| EPS::CommHello1::CommHello1 | ( | void | ) |
Constructor.
| EPS::CommHello1::CommHello1 | ( | const UUID & | uuid, |
| const EPS::EMode | mode, | ||
| const time_t | eps_timestamp, | ||
| const std::string & | cipherhash, | ||
| const IPv4 & | address_eth, | ||
| const IPv4 & | address_eps = IPv4() |
||
| ) |
Constructor.
| void EPS::CommHello1::set | ( | const UUID & | uuid, |
| const EPS::EMode | mode, | ||
| const time_t | eps_timestamp, | ||
| const std::string & | cipherhash, | ||
| const IPv4 & | address_eth, | ||
| const IPv4 & | address_eps = IPv4() |
||
| ) |
Set the CommHello1 fields.


| uint32_t EPS::CommHello1::address_eps |
eps address (or 0.0.0.0 if it hasn't yet been assigned)
| uint32_t EPS::CommHello1::address_eth |
ethernet (non-EPS) address (network byte order)
| char EPS::CommHello1::cipherhash_str[20] |
nonesense hash used to quickly determine if the cipher key and iv are correctly set
| uint32_t EPS::CommHello1::eps_uptime |
timestamp when EPS was started (network byte order)
| CommHeader1 EPS::CommHello1::header |
common header
| char EPS::CommHello1::hostname_str[40] |
first 40 chars of the hostname (which can be up to 255 bytes long)
| uint8_t EPS::CommHello1::mode |
| char EPS::CommHello1::os_version_str[40] |
version string of the operating system
| uint32_t EPS::CommHello1::system_uptime |
timestamp when the system was started (network byte order)
| char EPS::CommHello1::uuid_str[40] |
uuid
| char EPS::CommHello1::version_str[20] |
text representation of the version string