#include <network/ipv4.h>
Inheritance diagram for neo::network::AddressIPv4:


Public Member Functions | |
| AddressIPv4 () | |
| Construct default address (any). | |
| AddressIPv4 (const std::string &host, unsigned int port=0) | |
| Construct from host name or dotted-format string. | |
| void | setIP (unsigned int ip) |
| Set IP. | |
| unsigned int | getIP () const |
| Get IP. | |
Static Public Member Functions | |
| static core::Array< unsigned int > | getLocalIPs () |
| Get local IP. | |
Protected Member Functions | |
| void | resolv (const std::string &host) |
| Resolve hostname. | |
| neo::network::AddressIPv4::AddressIPv4 | ( | const std::string & | host, | |
| unsigned int | port = 0 | |||
| ) |
| host | Host name | |
| port | Port |
| void neo::network::AddressIPv4::setIP | ( | unsigned int | ip | ) |
Set raw IP address
| ip | IP address (host order) |
| unsigned int neo::network::AddressIPv4::getIP | ( | ) | const |
| static core::Array< unsigned int > neo::network::AddressIPv4::getLocalIPs | ( | ) | [static] |
| void neo::network::AddressIPv4::resolv | ( | const std::string & | host | ) | [protected] |
| host | Host name |
1.5.1