EPS Conduits  v0.0.2-1816
networking over networking
EPS::CommHello1 Struct Referencefinal

Communication header: initial "hello" sent between clients and servers when they first connect. More...

#include "comm.hpp"

Collaboration diagram for EPS::CommHello1:

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...
 

Detailed Description

Communication header: initial "hello" sent between clients and servers when they first connect.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

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
See also
EPS::EMode
char EPS::CommHello1::os_version_str[40]

version string of the operating system

See also
EPS::get_os_name()
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


The documentation for this struct was generated from the following files: