EPS Conduits  v0.0.2-2411
networking over networking
EPS::Connection Class Referenceabstract

Base class for TCP and UDP connections between peer devices. More...

#include "Connection.hpp"

Inheritance diagram for EPS::Connection:
Collaboration diagram for EPS::Connection:

Public Member Functions

 Connection (void)
 Constructor. More...
 
virtual ~Connection (void)
 Destructor. More...
 
virtual void set_socket_options (void)=0
 Set various socket options. More...
 

Public Attributes

size_t id
 unique connection id, helpful when logging connection-specific messages More...
 
std::string name
 convenient name to use for logging More...
 
UUID uuid
 corresponding UUID for this peer connection More...
 
Hullhull
 for convenience, keep a reference to the hull that created this connection More...
 
EC ec
 boost error code More...
 

Detailed Description

Base class for TCP and UDP connections between peer devices.

See also
EPS::TCPConnection
EPS::UDPConnection

Constructor & Destructor Documentation

◆ Connection()

EPS::Connection::Connection ( void  )

Constructor.

◆ ~Connection()

EPS::Connection::~Connection ( void  )
virtual

Destructor.

Member Function Documentation

◆ set_socket_options()

virtual void EPS::Connection::set_socket_options ( void  )
pure virtual

Set various socket options.

Implemented in EPS::TCPConnection, and EPS::UDPConnection.

Member Data Documentation

◆ ec

EC EPS::Connection::ec

boost error code

◆ hull

Hull& EPS::Connection::hull

for convenience, keep a reference to the hull that created this connection

◆ id

size_t EPS::Connection::id

unique connection id, helpful when logging connection-specific messages

◆ name

std::string EPS::Connection::name

convenient name to use for logging

◆ uuid

UUID EPS::Connection::uuid

corresponding UUID for this peer connection

See also
EPS::Tracker which uses the uuid as the key

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