For a software engineer, a socket is a network interface. Programs talking to each other are sharing the same thread.
There are two communication modes :
connected : Stream Sockets
unconnected : Datagram Sockets
In connected mode, the excellent quality of transmission is achieved using TCP.
Web browsing with HTTP, for example, is actually using TCP. TCP is informationlossless! The information reach the final destination in the original order and no data is lost.
The protocol used by Datagram Sockets is UDP. A packet retrieving information must be implemented.
Commentaires