Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
Loading...
Searching...
No Matches
Protocol< NIC >::Address Class Reference

#include <protocol.h>

Public Types

enum  Null { NULL_VALUE }
 

Public Member Functions

 Address ()
 
 Address (const Null &null)
 
 Address (Physical_Address paddr, Port port)
 
void paddr (Physical_Address addr)
 
const Physical_Addresspaddr () const
 
void port (Port port)
 
const Portport () const
 
const std::string to_string () const
 
 operator bool () const
 
bool operator== (const Address &a) const
 

Static Public Attributes

static const Address BROADCAST
 

Member Enumeration Documentation

◆ Null

Enumerator
NULL_VALUE 

Constructor & Destructor Documentation

◆ Address() [1/3]

template<typename NIC >
Protocol< NIC >::Address::Address ( )

◆ Address() [2/3]

template<typename NIC >
Protocol< NIC >::Address::Address ( const Null null)

◆ Address() [3/3]

template<typename NIC >
Protocol< NIC >::Address::Address ( Physical_Address  paddr,
Port  port 
)

Member Function Documentation

◆ operator bool()

template<typename NIC >
Protocol< NIC >::Address::operator bool ( ) const

◆ operator==()

template<typename NIC >
bool Protocol< NIC >::Address::operator== ( const Address a) const

◆ paddr() [1/2]

template<typename NIC >
const Protocol< NIC >::Physical_Address & Protocol< NIC >::Address::paddr ( ) const

◆ paddr() [2/2]

template<typename NIC >
void Protocol< NIC >::Address::paddr ( Physical_Address  addr)

◆ port() [1/2]

template<typename NIC >
const Protocol< NIC >::Port & Protocol< NIC >::Address::port ( ) const

◆ port() [2/2]

template<typename NIC >
void Protocol< NIC >::Address::port ( Port  port)

◆ to_string()

template<typename NIC >
const std::string Protocol< NIC >::Address::to_string ( ) const

Member Data Documentation

◆ BROADCAST

template<typename NIC >
const Protocol< NIC >::Address Protocol< NIC >::Address::BROADCAST
static
Initial value:
=
0
)
static const Ethernet::Address BROADCAST
Definition ethernet.h:54
Definition protocol.h:134

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