boost::async_write 跳过字符串的一部分
boost::async_write skips parts of the string
我正在聊天。出于某种原因,在其他客户端之间分发用户消息时,Server::msgHandler
组合在一起的字符串被async_write
Connection::write
屠宰,使其看起来只有该字符串的一部分实际上被读取。例:
构造消息:"Hello people by Jack">
显示为:"Jack">
也就是说,string str=Hello people
没有打印出来。起初我以为这与末尾的隐式