![]() |
DUNE: Uniform Navigational Environment
2017.01.0
|
IPv4 Address.
Public Types | |
| enum | StaticAddress { Any, Broadcast, Loopback } |
Public Member Functions | |
| Address (void) | |
| Address (StaticAddress address) | |
| Address (uint32_t ad) | |
| Address (const ::sockaddr *ad) | |
| Address (const char *ad) | |
| bool | operator== (const Address &other) const |
| bool | operator!= (const Address &other) const |
| bool | operator< (const Address &other) const |
| bool | operator> (const Address &other) const |
| Address & | operator= (const char *address) |
| Address & | operator= (const ::sockaddr *ad) |
| Address & | operator= (uint32_t ad) |
| uint32_t | toInteger (void) const |
| uint32_t | toIntegerNative (void) const |
| std::string | str (void) const |
| const char * | c_str (void) |
| bool | resolve (void) |
| bool | isLoopback (void) const |
| bool | isAny (void) const |
| DUNE::Network::Address::Address | ( | void | ) |
Referenced by DUNE::Network::Interface::get().
| DUNE::Network::Address::Address | ( | StaticAddress | address | ) |
| DUNE::Network::Address::Address | ( | uint32_t | ad | ) |
| DUNE::Network::Address::Address | ( | const ::sockaddr * | ad | ) |
| DUNE::Network::Address::Address | ( | const char * | ad | ) |
| const char * DUNE::Network::Address::c_str | ( | void | ) |
Referenced by DUNE::Network::operator>>().
| bool DUNE::Network::Address::isAny | ( | void | ) | const |
Test if the address is a current or any network address (0.0.0.0/8).
References toIntegerNative().
| bool DUNE::Network::Address::isLoopback | ( | void | ) | const |
Test if the address is a loopback address (127.0.0.0/8).
References toIntegerNative().
| bool DUNE::Network::Address::operator!= | ( | const Address & | other | ) | const |
| bool DUNE::Network::Address::operator< | ( | const Address & | other | ) | const |
| Address & DUNE::Network::Address::operator= | ( | uint32_t | ad | ) |
References str(), and DUNE::Utils::ByteCopy::toBE().
| bool DUNE::Network::Address::operator== | ( | const Address & | other | ) | const |
| bool DUNE::Network::Address::operator> | ( | const Address & | other | ) | const |
| bool DUNE::Network::Address::resolve | ( | void | ) |
Referenced by operator=().
| std::string DUNE::Network::Address::str | ( | void | ) | const |
Referenced by DUNE::Network::operator<<(), operator=(), and DUNE::Network::UDPSocket::write().
| uint32_t DUNE::Network::Address::toInteger | ( | void | ) | const |
| uint32_t DUNE::Network::Address::toIntegerNative | ( | void | ) | const |
References DUNE::Utils::ByteCopy::fromBE().
Referenced by isAny(), and isLoopback().
