Commit 54e61304 authored by zhanglikun's avatar zhanglikun
Browse files

Merge branch 'master' into trac638

parents fa83bb99 242cb681
...@@ -110,7 +110,7 @@ TCPServer::operator()(error_code ec, size_t length) { ...@@ -110,7 +110,7 @@ TCPServer::operator()(error_code ec, size_t length) {
/// Now read the message itself. (This is done in a different scope /// Now read the message itself. (This is done in a different scope
/// to allow inline variable declarations.) /// to allow inline variable declarations.)
CORO_YIELD { CORO_YIELD {
InputBuffer dnsbuffer((const void *) data_.get(), length); InputBuffer dnsbuffer(data_.get(), length);
uint16_t msglen = dnsbuffer.readUint16(); uint16_t msglen = dnsbuffer.readUint16();
async_read(*socket_, asio::buffer(data_.get(), msglen), *this); async_read(*socket_, asio::buffer(data_.get(), msglen), *this);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment