boost async_receive receiving unexpected random things
i'm working on an irc server but the problem it's receiving something like this:
CAP LS
NICK Fallen
USER Fallen 0 * :Fallen
where it should be:
NICK Fallen
USER Fallen 0 * :Fallen
my code: http://pastebin.com/Li3wbpvu (i'm so开发者_如何学Gorry i suck at posting code here it gets messy) EDIT: more details: and it's not even receiving every message in a new line. any ideas?
That's perfectly valid IRC protocol capabilities negotiation.
See some references
精彩评论