Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are UDP messages atomic?

Tags:

sockets

udp

If I send some sequence of bytes on a UDP socket (ie, in a single send call), is it possible that the receiving socket will receive only part of the transmitted message (ignoring the case of too small a buffer). Or will the byte sequence be delivered in its entirety or not at all, but never partially or in multiple groups?

like image 585
alecbz Avatar asked Dec 12 '25 06:12

alecbz


1 Answers

Yes. UDP datagrams are delivered entire and intact or not at all.

like image 52
user207421 Avatar answered Dec 16 '25 22:12

user207421



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!