Constructors
Synopses
Declared in <netaddress.h>
Construct an unspecified, invalid service.
CService();
Construct a service from an IPv4 socket address.
explicit
CService(sockaddr_in const& addr);
Construct a service from an IPv6 socket address.
explicit
CService(sockaddr_in6 const& addr);
Construct a service from a network address and port.
Construct a service from an IPv6 address and port.
CService(
in6_addr const& ipv6Addr,
uint16_t port);
Construct a service from an IPv4 address and port.
CService(
in_addr const& ipv4Addr,
uint16_t port);
Parameters
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. |
Created with MrDocs