Myra Canyon  v0.0.1-768
network control
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Myra::AddrPort Class Referencefinal

This class exists mostly for the ability to easily sort addresses and ports numerically when creating hashes. More...

#include "AddrPort.hpp"

Public Member Functions

 ~AddrPort (void)
 Destructor. More...
 
 AddrPort (void)
 Constructor. More...
 
 AddrPort (const IPv4_ADDR &a, const PORT p)
 Constructor. More...
 
AddrPortclear (void)
 Clear protocol, address, and port. More...
 
bool empty (void) const
 Check to see if any values have been set. More...
 
void swap (AddrPort &rhs)
 Swap two AddrPort objects. More...
 
std::string to_string (void) const
 Format the object as a text string (for debug purposes). More...
 

Public Attributes

IPv4_ADDR addr
 32-bit address in network byte order More...
 
PORT port
 16-bit port in network byte order More...
 

Detailed Description

This class exists mostly for the ability to easily sort addresses and ports numerically when creating hashes.

All fields (addresses and ports) are stored in network byte order.

Constructor & Destructor Documentation

Myra::AddrPort::~AddrPort ( void  )
inline

Destructor.

Myra::AddrPort::AddrPort ( void  )
inline

Constructor.

Myra::AddrPort::AddrPort ( const IPv4_ADDR a,
const PORT  p 
)
inline

Constructor.

Member Function Documentation

AddrPort& Myra::AddrPort::clear ( void  )
inline

Clear protocol, address, and port.

Here is the caller graph for this function:

bool Myra::AddrPort::empty ( void  ) const
inline

Check to see if any values have been set.

Here is the caller graph for this function:

void Myra::AddrPort::swap ( AddrPort rhs)
inline

Swap two AddrPort objects.

Here is the caller graph for this function:

std::string Myra::AddrPort::to_string ( void  ) const
inline

Format the object as a text string (for debug purposes).

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

IPv4_ADDR Myra::AddrPort::addr

32-bit address in network byte order

PORT Myra::AddrPort::port

16-bit port in network byte order


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