|
|
Home » Developing U++ » UppHub » Urr
|
|
|
|
Re: Urr [message #24131 is a reply to message #23942] |
Sun, 27 December 2009 21:40   |
|
luzr wrote on Wed, 09 December 2009 10:29 |
Mindtraveller wrote on Sat, 21 November 2009 06:37 | Is this package cross-platform?
|
Should be.
|
Nice example!
Thank you!
What you recommend to send massive data between two computers by internet?
regards, Ion (tojocky)
|
|
|
|
|
|
|
Re: Urr [message #30563 is a reply to message #24139] |
Sat, 08 January 2011 20:15   |
 |
mirek
Messages: 14256 Registered: November 2005
|
Ultimate Member |
|
|
Didier wrote on Mon, 28 December 2009 06:53 | Hi Tojoky,
UDP can be used safely between two computers in a LAN. If you plan to use it over internet a problem comes immediately to you:
UDP is allowed to lose packets (without you being noticed !)
There are two solutions:
1 - you can afford to lose some packets
2 - you have a dedicated control mechanism (as in TCP)
A second problem comes: it is not guaranteed that you will receive all the packets in original order ! ( although most of them will be in the wright order )
|
However, those are things that Urr solves...
Well, for very large amounts of data, TCP will be better. But if your usage scenario is about making a lot of quick requests and getting response that usually (not always!) is less than say 32KB, Urr shall be better - it takes quite long for TCP to establish connection, while for Urr request/response are just 2 packets.
If your response data too often >32KB, Urr still would work fine, but at some point TCP/IP would start to be better.
|
|
|
|
|
Goto Forum:
Current Time: Wed Apr 30 00:36:55 CEST 2025
Total time taken to generate the page: 0.00707 seconds
|
|
|