CService::CService

Constructors

Synopses

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...

Parameters

NameDescription
addrThe IPv4 socket address to read the address and port from.
ipThe network address of the service.
portThe TCP port in host byte order.
ipv6AddrThe IPv6 address of the service.
ipv4AddrThe IPv4 address of the service.