|
Boost Users : |
Subject: [Boost-users] asio::transfer_at_least strange behavior
From: Timenkov Yuri (ytimenkov_at_[hidden])
Date: 2009-02-12 13:01:59
Hi
Is transfer_at_least supposed to return success only if requested number of
bytes transferred at once or at all?
For example, I want to receive 800 bytes and put them into streambuf using
transfer_at_least(800) as completion condition, but I receive 2 chunks of
400 bytes, therefore I never get a success, because transfer_at_least_t
always wants more data.
I know, there are may be some problems with handler copying, but the name of
function is misleading, and may be should be documented.
I'm using boost 1.37, may be something has changed in 1.38.
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