
1 Apr
2008
1 Apr
'08
11:16 p.m.
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'. Cheers, Chris