sockets - Choosing Network protocol TCP or UDP for remote desktop appplication? -


i want create teamviewer application in c#. protocol better tcp or udp in terms of performance ?

udp sends network messages without enforcing order, e.g. can come in out of order, , without checking messages got through.

tcp enforces packet ordering, , has method of checking messages got through. more reliable.

in terms of throughput - e.g. amount of data transferred in given time - in practice same.

the advantage of udp lower latency. because doesn't check ordering or confirm receipt of packets - program receives packets arrive. no waiting confirmations.

you want use udp when low latency critical , messages small, , program tolerant missing packets , out of order packets. i've ever seen used in video games ( shooters ) sending user input.

"teamviewer" me implies video - large amounts of data - use tcp.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -