Read some message data.
template< class DynamicBuffer> std::size_t read_some( DynamicBuffer& buffer, std::size_t limit, error_code& ec);
This function is used to read some message data. The call blocks until one of the following is true:
The algorithm, known as a composed operation, is
implemented in terms of calls to the next layer's
Received message data is appended to the buffer. The functions
got_text may be used to query
the stream and determine the type of the last received message. The function
is_message_done may be called
to determine if the message received by the last read operation is complete.
Until the call returns, the implementation will read incoming control
frames and handle them automatically as follows:
The number of message payload bytes appended to the buffer.
A dynamic buffer to append message data to.
An upper limit on the number of bytes this function will append into the buffer. If this value is zero, then a reasonable size will be chosen automatically.
Set to indicate what error occurred, if any.