Boost logo

Boost Users :

From: Jose Martinez (jmartine_1026_at_[hidden])
Date: 2008-06-17 23:08:37


Hello,

For the function basic_datagram::async_read() the asio documentation states:

"The handler to be called when the receive operation completes."

Does that occur when a UDP datagram is received in full or the buffer has filled? I'm just concerned that it might insert into the buffer more than one UDP datagram before calling the handler or a non-complete UDP datagram. I wanted to use the async_read_until but it states that its for streams, which makes sense if the basic_datagram::async_read function returns on a per complete datagram basis. I'm also assuming large UDP datagrams (that take up multiple packets) will be collected by the transport layer before being presented to the application layer (though this is not so much an Asio question as it is a Linux network stack question).

thanks a lot!
jose
"survival first, then happiness as we can manage it"

      


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