Socket Programming Interview Questions and Answers

What is a socket? - A socket is used to connect an application to a network protocol. A socket enables communication between a client and a server.........
Datagram vs. stream - Stream can be considered as a pipe that allows full duplex connection. A datagram or a packet on the other hand, has a source and a destination.........
What is a stream socket? - A stream socket provides two way communications between a client and server. This communication is reliable and sequenced.........