Boost logo

Boost Users :

Subject: [Boost-users] [Asio] Handlers of asycn_send_to are called in which order?
From: Attila Rajmund Nohl (attila.r.nohl_at_[hidden])
Date: 2015-01-28 11:29:31


Hello!

My code sends UDP packets using async_send_to. If all packets are
successfully sent, are their handlers called in the same order as the
async_send_to calls happened? I mean if my code looks something like
this:

socket.async_send_to(buffer1, destination, handler1);
socket.async_send_to(buffer2, destination, handler2);

Is it guaranteed that handler2 is always called after handler1?


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