Boost logo

Boost :

From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2008-04-01 19:16:22

Billy Chasen wrote:
> I'm creating a server using boost:asio and am receiving data that ends
> with a \0 char (from flash sockets if you're curious)
> async_read_until seems to not like this as the delimiter. (If I switch
> to a diff delim like \r\n it works fine)
> How can I get async_read_until to work properly?

How are you specifying the delimiter? How are you extracting the data
from the streambuf once the operation finishes?

It works for me when I use a single char delimiter of '\0', and the
implementation of async_read_until doesn't have any special treatment
for '\0'.


Boost list run by bdawes at, gregod at, cpdaniel at, john at