Boost C++ Libraries

...one 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 a snapshot of the develop branch, built from commit ec9f6e560b.
PrevUpHomeNext
basic_stream_socket::available (2 of 2 overloads)

Inherited from basic_socket.

Determine the number of bytes available for reading.

std::size_t available(
    boost::system::error_code & ec) const;

This function is used to determine the number of bytes that may be read without blocking.

Parameters

ec

Set to indicate what error occurred, if any.

Return Value

The number of bytes that may be read without blocking, or 0 if an error occurs.


PrevUpHomeNext