
21 Jul
2025
21 Jul
'25
1:24 p.m.
Asio 1.88 im currently trying to understand a TCP server/client implementation at a new customer project the statemachine of the user code bases on the fact that a handler of an async_write needs to always comes before the handler of an async_read i don't think that is guaranteed, is it? this is the redcuded scenario: an async_read wait for a single reply from the connected sever a single async_write is done that make the server reply a single paket in the waiting aysnc_read is it possible that the async_write handler comes after the async_read handler? i had a look at the Asio implementation for Windows and it seems that the write handler will be come before - but im not that deep in the implementation