View RSS Feed

Java Socket

Socket programming and networking examples in Java.

  1. What is UDP good for?

    by , 04-25-2012 at 10:43 PM
    People read certain disadvantages of the UDP and wonder why one would be using it? Few situations are present where UDP would be a much better choice: Establishment and closing of the connections of TCP might take a lot of time. Packet headerís smaller packets are also added by the TCP to every packet. Just 8 bytes are added by UDP to the IP layer top. Other associated advantage of UDP is that there is no need to worry about timeouts because nothing is there like connection. Even packet could be ...
    Categories
    Tutorial