Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
basic_socket_streambuf::expires_from_now (2 of 2 overloads)

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

void expires_from_now(
    const duration & 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 boost::asio::error::operation_aborted.



The expiry time to be used for the timer.