[Asio] Buffer size on async_receive_from

1 Jul
2008
1 Jul
'08
2:50 p.m.
All, What happens if the "async_receive_from" receives data that's larger than the buffer size that it was pasted. In Windows, if the data coming in the socket is larger than the buffer than the data is discarded. Is this how "async_receive_from" handles it? Ryan

1 Jul
1 Jul
4:03 p.m.
In Windows, if the data coming in the socket is larger than the buffer than the data is discarded.
Are you sure about this? AFAIK, if you didn't get all the available data in one read(), then there's no any problem to make another read() to get the remained. So this is the behaviour of async_receive_from() as well.
6080
Age (days ago)
6080
Last active (days ago)
1 comments
2 participants
participants (2)
-
Igor R
-
Ryan McConnehey