|
LibSWOC++ 1.5.14
Solid Wall of C++
|
An IPv4 address and host_order_port, modeled on an SRV type for DNS. More...
#include <IPSrv.h>

Public Member Functions | |
| constexpr | IP4Srv ()=default |
| Default constructor. | |
| IP4Srv (IP4Addr addr, in_port_t port=0) | |
| IP4Srv (IPSrv const &that) | |
| IP4Srv (sockaddr_in const *s) | |
| IP4Srv (swoc::TextView text) | |
| constexpr | operator IP4Addr const & () const |
| Implicit conversion to an address. | |
| constexpr IP4Addr const & | addr () const |
| in_port_t | host_order_port () const |
| in_port_t | network_order_port () const |
| bool | operator== (self_type that) const |
| bool | operator!= (self_type that) const |
| bool | operator< (self_type that) const |
| bool | operator<= (self_type const &that) const |
| bool | operator> (self_type const &that) const |
| bool | operator>= (self_type const &that) const |
| bool | load (swoc::TextView text) |
| self_type & | assign (IP4Addr const &addr) |
| self_type & | assign (in_port_t port) |
| self_type & | assign (IP4Addr const &addr, in_port_t port) |
| self_type & | assign (sockaddr_in const *s) |
Static Public Member Functions | |
| static constexpr sa_family_t | family () |
Protected Attributes | |
| IP4Addr | _addr |
| Address. | |
| in_port_t | _port = 0 |
| Port [host order]. | |
An IPv4 address and host_order_port, modeled on an SRV type for DNS.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
explicit |
Construct from a string.
| text | Input text. |
If the port is not present it is set to zero.
Definition at line 738 of file swoc_ip.cc.
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inline |
| bool swoc::IP4Srv::load | ( | swoc::TextView | text | ) |
Load from a string.
| text | Input string. |
true if text in a valid format, false if not. Definition at line 743 of file swoc_ip.cc.
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |