The two most common transport layer protocols are the transmission control protocol (TCP) and the user datagram protocol (UDP). One of the main differences between the two protocols is reliability.
Sockets provide an interface into the kernel’s networking protocols by allowing programmers to create a communication endpoint in the form of a file descriptor, and by binding a name to the file ...