boost::corosio::endpoint::endpoint

Constructors

Synopses

Default constructor.

endpoint() noexcept;

Construct from a string.

explicit
endpoint(std::string_view s);

Construct from port only.

explicit
endpoint(uint16_t p) noexcept;

Construct from IPv4 address and port.

endpoint(
    ipv4_address addr,
    uint16_t p) noexcept;

Construct from IPv6 address and port.

endpoint(
    ipv6_address addr,
    uint16_t p) noexcept;

Construct from an endpoint's address with a different port.

endpoint(
    endpoint const& ep,
    uint16_t p) noexcept;

Exceptions

Name

Thrown on

std::system_error

on parse failure.

Parameters

Name Description

s

The string to parse.

p

The port number in host byte order.

addr

The IPv4 address.

ep

The endpoint whose address to use.

Created with MrDocs