In my recent project, I need to use the UDP protocol to transmit data.
If I send data by using size = s.sendto(data, (<addr>, <port>))
, will the UDP protocol ensure that the data is packed into one UDP packet?
If so, will size == len(data)
always be True
?
Is there anything that I misunderstood?
More precisely, will 'sendto()' split my data into several smaller chunks and then pack each chunk into UDP packet to transimit?