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... | |
| AddrPort & | clear (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... | |
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.
|
inline |
Destructor.
|
inline |
Constructor.
|
inline |
Clear protocol, address, and port.

|
inline |
Check to see if any values have been set.

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


| IPv4_ADDR Myra::AddrPort::addr |
32-bit address in network byte order
| PORT Myra::AddrPort::port |
16-bit port in network byte order