async read from socket
This commit is contained in:
parent
9632b749f4
commit
cf37d36353
|
@ -37,7 +37,7 @@ void Callback(const boost::system::error_code& ec,
|
||||||
|
|
||||||
void ReadFromSocket(std::shared_ptr<net::ip::tcp::socket> sock)
|
void ReadFromSocket(std::shared_ptr<net::ip::tcp::socket> sock)
|
||||||
{
|
{
|
||||||
auto s = make_unique<session>();
|
auto s = make_shared<session>();
|
||||||
|
|
||||||
const uint32_t message_size = 7;
|
const uint32_t message_size = 7;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue