CService::CService

Construct a service from an IPv4 address and port.

Synopsis

Declared in <netaddress.h>

CService(
    in_addr const& ipv4Addr,
    uint16_t port);

Parameters

NameDescription
ipv4AddrThe IPv4 address of the service.
portThe TCP port in host byte order.