Family specialized data.
More...
#include <IPSrv.h>
|
| | data (IP4Srv const &srv) |
| | Construct from IPv4 data.
|
| |
| | data (sockaddr_in const *s) |
| |
| | data (IP6Srv const &srv) |
| | Construct from IPv6 data.
|
| |
| | data (sockaddr_in6 const *s) |
| |
| IPAddr | addr (sa_family_t f) const |
| |
| constexpr in_port_t | port (sa_family_t f) const |
| |
Family specialized data.
Definition at line 377 of file IPSrv.h.
◆ data() [1/5]
| swoc::IPSrv::data::data |
( |
| ) |
|
|
inline |
◆ data() [2/5]
| swoc::IPSrv::data::data |
( |
IP4Srv const & | srv | ) |
|
|
inlineexplicit |
Construct from IPv4 data.
Definition at line 385 of file IPSrv.h.
◆ data() [3/5]
| swoc::IPSrv::data::data |
( |
sockaddr_in const * | s | ) |
|
|
inlineexplicit |
◆ data() [4/5]
| swoc::IPSrv::data::data |
( |
IP6Srv const & | srv | ) |
|
|
inlineexplicit |
Construct from IPv6 data.
Definition at line 389 of file IPSrv.h.
◆ data() [5/5]
| swoc::IPSrv::data::data |
( |
sockaddr_in6 const * | s | ) |
|
|
inlineexplicit |
◆ addr()
| IPAddr swoc::IPSrv::data::addr |
( |
sa_family_t | f | ) |
const |
|
inline |
- Returns
- A generic address.
Definition at line 700 of file IPSrv.h.
◆ port()
| in_port_t swoc::IPSrv::data::port |
( |
sa_family_t | f | ) |
const |
|
inlineconstexpr |
- Returns
- The port in host order.
Definition at line 705 of file IPSrv.h.
◆ _ip4
| IP4Srv swoc::IPSrv::data::_ip4 |
IPv4 address (host)
Definition at line 379 of file IPSrv.h.
◆ _ip6
| IP6Srv swoc::IPSrv::data::_ip6 |
IPv6 address (host)
Definition at line 380 of file IPSrv.h.
◆ _nil
| std::monostate swoc::IPSrv::data::_nil |
Nil / invalid state.
Definition at line 378 of file IPSrv.h.
The documentation for this union was generated from the following file: