Giving Users an Option Between UDP & TCP?

Posted by cam on Stack Overflow See other posts from Stack Overflow or by cam
Published on 2010-04-04T22:17:06Z Indexed on 2010/04/04 22:23 UTC
Read the original article Hit count: 284

Filed under:
|

After studying TCP/UDP difference all week, I just can't decide which to use. I have to send a large amount of constant sensor data, while at the same time sending important data that can't be lost. This made a perfect split for me to use both, then I read a paper (http://www.isoc.org/INET97/proceedings/F3/F3_1.HTM) that says using both causes packet/performance loss in the other. Is there any issue presented if I allow the user to choose which protocol to use (if I program both server side) instead of choosing myself? Are there any disadvantages to this?

The only other solution I came up with is to use UDP, and if there seems to be too great of loss of packets, switch to TCP (client-side).

© Stack Overflow or respective owner

Related posts about tcp

Related posts about udp