Networking TS

PrevUpHomeNext

basic_socket_iostream::expires_at

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

void expires_at(
    const time_point & expiry_time);

This function sets the expiry time associated with the stream. Stream operations performed after this time (where the operations cannot be completed using the internal buffers) will fail with the error std::experimental::net::v1::error::operation_aborted.

Parameters

expiry_time

The expiry time to be used for the stream.


PrevUpHomeNext