RE: Python Client and Server Internet Communication Using UDP

You are viewing a single comment's thread from:

Python Client and Server Internet Communication Using UDP

in python •  7 years ago 

This is the main difference between UDP and TCP. UDP does not stream - data is sent as random, short messages that can arrive out of order or not at all.

UDP data have to be in order! Thats why it is used in VOIP and live streams for example.
Your voice have to transfered in the right order to be understandable.

A question:
Why do you have to specify the size of the package you want to recieve?
UDP is a stream that has no specified lenght... how should you know how long a phone call takes? or how long a livestream is broadcasted?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  7 years ago (edited)

As he stated if you need them to arrive in order. You have to write code to check the order when it arrives..