IPv4 address class.
More...
#include <IPv4Address.h>
|
static IPv4Address::Ptr | create (const char *address, uint16_t port) |
|
static IPv4Address::Ptr | localhost (uint16_t port=0) |
|
static IPv4Address::Ptr | any (uint16_t port=0) |
|
static Ptr | create (const char *address, uint16_t port=0) |
|
static Ptr | create (const sockaddr *address, socklen_t address_len) |
|
static bool | lookUp (std::vector< Address::Ptr > &result, const std::string &host, int family=AF_INET, int type=0, int protocol=0) |
|
static Address::Ptr | lookUpAny (const std::string &host, int family=AF_INET, int type=0, int protocol=0) |
|
◆ Ptr
◆ IPv4Address() [1/2]
IPv4Address::IPv4Address |
( |
const sockaddr_in & | address | ) |
|
|
explicit |
◆ IPv4Address() [2/2]
IPv4Address::IPv4Address |
( |
uint32_t | address = INADDR_ANY, |
|
|
uint16_t | port = 0 ) |
|
explicit |
◆ any()
◆ create()
◆ getAddress()
std::string IPv4Address::getAddress |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ getBroadcastAddress()
IPAddress::Ptr IPv4Address::getBroadcastAddress |
( |
uint32_t | prefix_len | ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ getFamily()
uint16_t sese::net::IPv4Address::getFamily |
( |
| ) |
|
|
inlineoverridevirtualnoexcept |
◆ getNetworkAddress()
IPAddress::Ptr IPv4Address::getNetworkAddress |
( |
uint32_t | prefix_len | ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ getPort()
uint16_t sese::net::IPv4Address::getPort |
( |
| ) |
const |
|
inlinenodiscardoverridevirtualnoexcept |
◆ getRawAddress()
sockaddr * IPv4Address::getRawAddress |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ getRawAddressLength()
socklen_t IPv4Address::getRawAddressLength |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ getSubnetMask()
IPAddress::Ptr IPv4Address::getSubnetMask |
( |
uint32_t | prefix_len | ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ localhost()
◆ setFamily()
void sese::net::IPv4Address::setFamily |
( |
uint16_t | family | ) |
|
|
inlineoverridevirtualnoexcept |
◆ setPort()
void sese::net::IPv4Address::setPort |
( |
uint16_t | port | ) |
|
|
inlineoverridevirtualnoexcept |
◆ address
sockaddr_in sese::net::IPv4Address::address {0} |
|
private |
The documentation for this class was generated from the following files: