Skip to content

asio::basic_socket_streambuf

Iostream streambuf for a socket.

詳細情報

メンバー

basic_socket_streambuf()

Construct a without establishing a connection.

asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::basic_socket_streambuf()

~basic_socket_streambuf()

Destructor flushes buffered data.

virtual asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::~basic_socket_streambuf()

connect()

Establish a connection.

basic_socket_streambuf* asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::connect(const endpoint_type &endpoint)

引数

  • const& endpoint

戻り値

basic_socket_streambuf*

close()

Close the connection.

basic_socket_streambuf* asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::close()

戻り値

basic_socket_streambuf* if a connection was successfully established, a null pointer otherwise.

socket()

Get a reference to the underlying socket.

basic_socket<Protocol ASIO_SVC_TARG>& asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::socket()

戻り値

basic_socket< Protocol > &

error()

Get the last error associated with the stream buffer.

const asio::error_code& asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::error() const

戻り値

const& An corresponding to the last error from the stream buffer.

puberror()

(Deprecated: Use .) Get the last error associated with the stream buffer.

const asio::error_code& asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::puberror() const

戻り値

const& An corresponding to the last error from the stream buffer.

expires_at()

(Deprecated: Use .) Get the stream buffer's expiry time as an absolute time.

time_point asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::expires_at() const

戻り値

time_point An absolute time value representing the stream buffer's expiry time.

expiry()

Get the stream buffer's expiry time as an absolute time.

time_point asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::expiry() const

戻り値

time_point An absolute time value representing the stream buffer's expiry time.

expires_at()

Set the stream buffer's expiry time as an absolute time.

This function sets the expiry time associated with the stream. operations performed after this time (where the operations cannot be completed using the internal buffers) will fail with the error .

void asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::expires_at(const time_point &expiry_time)

引数

  • const& expiry_time The expiry time to be used for the stream.

expires_after()

Set the stream buffer's expiry time relative to now.

This function sets the expiry time associated with the stream. operations performed after this time (where the operations cannot be completed using the internal buffers) will fail with the error .

void asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::expires_after(const duration &expiry_time)

引数

  • const& expiry_time The expiry time to be used for the timer.

expires_from_now()

(Deprecated: Use .) Get the stream buffer's expiry time relative to now.

duration asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::expires_from_now() const

戻り値

duration A relative time value representing the stream buffer's expiry time.

expires_from_now()

(Deprecated: Use .) Set the stream buffer's expiry time relative to now. This function sets the expiry time associated with the stream. operations performed after this time (where the operations cannot be completed using the internal buffers) will fail with the error .

void asio::basic_socket_streambuf< ASIO_SVC_TPARAM, Clock, ASIO_SVC_TPARAM1 >::expires_from_now(const duration &expiry_time)

引数

  • const& expiry_time The expiry time to be used for the timer.