void recvMsg(unsigned id, F f, O o)
 {
     if (hasConnection(id))
         async_read_until(*getSocket(id), *getRecvBuffer(id), '\0',
                          bind(&ConnectionList::_recvMsg<F, O>, this, id, f, o, _1, _2));
 }
Beispiel #2
0
void Client::readInput() {
    async_read_until(input, buffer, '\n',
        boost::bind(&Client::handleReadInput, this,
            boost::asio::placeholders::error,
            boost::asio::placeholders::bytes_transferred));
}