what is the difference between udp and tcp?
 TCP needs a unique pair of sockets to communicate between two pairs of end devices whereas UDP can do point to multi-point. While TCP is more popular across the Internet, the UDP cannot be rendered completely redundant. TCP allows error correction but UDP does not. 