Skip to content

asio::generic::basic_endpoint

Describes an endpoint for any socket type.

詳細情報

メンバー

basic_endpoint()

Default constructor.

asio::generic::basic_endpoint< Protocol >::basic_endpoint()

basic_endpoint()

Construct an endpoint from the specified socket address.

asio::generic::basic_endpoint< Protocol >::basic_endpoint(const void *socket_address, std::size_t socket_address_size, int socket_protocol=0)

引数

  • constvoid * socket_address
  • std::size_t socket_address_size
  • int socket_protocol

basic_endpoint()

Construct an endpoint from the specific endpoint type.

asio::generic::basic_endpoint< Protocol >::basic_endpoint(const Endpoint &endpoint)

引数

  • constEndpoint & endpoint

basic_endpoint()

Copy constructor.

asio::generic::basic_endpoint< Protocol >::basic_endpoint(const basic_endpoint &other)

引数

  • const& other

operator=()

Assign from another endpoint.

basic_endpoint& asio::generic::basic_endpoint< Protocol >::operator=(const basic_endpoint &other)

引数

  • const& other

戻り値

basic_endpoint&

protocol()

The protocol associated with the endpoint.

protocol_type asio::generic::basic_endpoint< Protocol >::protocol() const

戻り値

protocol_type

data()

Get the underlying endpoint in the native type.

data_type* asio::generic::basic_endpoint< Protocol >::data()

戻り値

data_type*

data()

Get the underlying endpoint in the native type.

const data_type* asio::generic::basic_endpoint< Protocol >::data() const

戻り値

const*

size()

Get the underlying size of the endpoint in the native type.

std::size_t asio::generic::basic_endpoint< Protocol >::size() const

戻り値

std::size_t

resize()

Set the underlying size of the endpoint in the native type.

void asio::generic::basic_endpoint< Protocol >::resize(std::size_t new_size)

引数

  • std::size_t new_size

capacity()

Get the capacity of the endpoint in the native type.

std::size_t asio::generic::basic_endpoint< Protocol >::capacity() const

戻り値

std::size_t