#include <network/ip.h>
Inheritance diagram for neo::network::AddressIP:


Public Member Functions | |
| AddressIP () | |
| Setup address. | |
| AddressIP (const AddressIP &addr) | |
| Copy address. | |
| virtual | ~AddressIP () |
| Free resources. | |
| virtual const sockaddr * | getAddress () const |
| Get socket address. | |
| virtual socklen_t | getAddressSize () const |
| Get address size. | |
| virtual std::string | getAddressAsString () const |
| Get address as string. | |
| std::string | getHost () const |
| Get address host. | |
| void | setPort (unsigned int port) |
| Set address port. | |
| unsigned int | getPort () const |
| Get address port. | |
| AddressIP & | operator= (const AddressIP &addr) |
| Copy address. | |
| bool | operator== (const AddressIP &addr) const |
| Compare address. | |
| virtual AddressIP * | clone () const |
| Clone address. | |
Static Public Member Functions | |
| static AddressIP * | resolveAddress (const std::string &host, unsigned int port=0) |
| Resolve address. | |
| static AddressIP * | createAddress (sockaddr_in *p_saddr) |
| Create address. | |
Protected Attributes | |
| sockaddr_in * | _p_addr |
| Socket address. | |
| virtual const sockaddr* neo::network::AddressIP::getAddress | ( | ) | const [virtual] |
| virtual socklen_t neo::network::AddressIP::getAddressSize | ( | ) | const [virtual] |
| virtual std::string neo::network::AddressIP::getAddressAsString | ( | ) | const [virtual] |
| std::string neo::network::AddressIP::getHost | ( | ) | const |
| void neo::network::AddressIP::setPort | ( | unsigned int | port | ) |
| port | Port |
| unsigned int neo::network::AddressIP::getPort | ( | ) | const |
| static AddressIP* neo::network::AddressIP::resolveAddress | ( | const std::string & | host, | |
| unsigned int | port = 0 | |||
| ) | [static] |
Resolve hostname or address string
| host | Hostname or address string | |
| port | Port |
| static AddressIP* neo::network::AddressIP::createAddress | ( | sockaddr_in * | p_saddr | ) | [static] |
| bool neo::network::AddressIP::operator== | ( | const AddressIP & | addr | ) | const |
| virtual AddressIP* neo::network::AddressIP::clone | ( | ) | const [virtual] |
1.5.1