Thinking about UNIX, Windows and Mac and an output stream (both binary and text),
What does std::endl represent, i.e. ,
std::endl
Looks like your question got munged. Each command ends in []? For an over-the-wire protocol, I'd suggest using a delimiter that doesn't vary by platform. std::endl could resolve to '\r\n' or '\n\r' depending on the platform.