Boost logo

Boost Users :

Subject: [Boost-users] Which socket read get first when both asio::async_read and asio::read are active?
From: jupiter (jupiter.hce_at_[hidden])
Date: 2017-08-02 01:30:18


Hi,

I have a socket server program to activate in asio::async_read for receive
any messages initiated from client. But when the server sends a message to
the client, it uses sync write and flowing a sync read (asio::read) to
immediately receive the response. The issue I can think of is who will get
first read when both asio::async_read and asio::read are active?

Thank you.

Kind regards.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net