About Store Forum Documentation Contact



Post Reply 
Question about FastConnection
Author Message
MrPi Offline
Member

Post: #1
Question about FastConnection
I have read the comment about FastConnection saying:

PHP Code:
// fast but unreliable UDP based connection, data is not guaranteed to reach the target, order of received data is not guaranteed to be the same as when sending, received data size will always be the same as when it was sent 

Why is the data order not guaranteed to be the same for one packet?
As far as I know with UDP, if a single packet is successfully received, the data inside is complete, just as it was sent. Just the fact that it arrives is not certain.
(This post was last modified: 02-12-2014 01:42 PM by MrPi.)
02-12-2014 01:36 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #2
RE: Question about FastConnection
I believe he means packets are not in guaranteed order instead of data.
02-12-2014 01:48 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #3
RE: Question about FastConnection
That's exactly the reply that misses the point. But thank you, I know how TCP and UDP work.
The comment was indicating that the order of the data inside one packet is not guaranteed, which is wrong to my knowledge. It's probably just a confusing comment.
02-12-2014 05:43 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: Question about FastConnection
"order of received data is not guaranteed to be the same as when sending"
By this I mean when you make multiple calls of sending data, then different calls may reach with different order, but their contents will be unmodified
02-13-2014 11:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #5
RE: Question about FastConnection
updated it to:
"fast but unreliable UDP based connection, data is not guaranteed to reach the target, multiple data packets may not always be received in the same order as they were sent, received data size will always be the same as when it was sent"
02-13-2014 11:56 PM
Find all posts by this user Quote this message in a reply
Post Reply