Constructors
Declared in <netaddress.h>
Construct an unspecified, invalid service.
CService();
» more...
Construct a service from an IPv4 socket address.
explicit
CService(sockaddr_in const& addr);
» more...
Construct a service from an IPv6 socket address.
explicit
CService(sockaddr_in6 const& addr);
» more...
Construct a service from a network address and port.
CService(
CNetAddr const& ip,
uint16_t port);
» more...
Construct a service from an IPv6 address and port.
CService(
in6_addr const& ipv6Addr,
uint16_t port);
» more...
Construct a service from an IPv4 address and port.
CService(
in_addr const& ipv4Addr,
uint16_t port);
» more...
| Name | Description |
|---|---|
| addr | The IPv4 socket address to read the address and port from. |
| ip | The network address of the service. |
| port | The TCP port in host byte order. |
| ipv6Addr | The IPv6 address of the service. |
| ipv4Addr | The IPv4 address of the service. |