I need to receive all data from a socket stream to a buffer but I didn't come across a suitable function in Poco like boost::asio::read. What is the right way to implement boost-like behavior by using POCO?

Just to remind, from boost asio::read spec:

"This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.An error occurred.This operation is implemented in terms of zero or more calls to the stream's read_some function."