Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] socket::read_some() splits data into two parts.
From: Igor R (boost.lists_at_[hidden])
Date: 2011-05-11 10:57:44


> It must be reflected in documentation. Isn't it?

"The function call will block until one or more bytes of data has been
read successfully, or until an error occurs."

"Remarks:
The read_some operation may not read all of the requested number of
bytes. Consider using the read function if you need to ensure that the
requested amount of data is read before the blocking operation
completes."

http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/reference/basic_stream_socket/read_some/overload1.html


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net