Question - What are sockets?
Answer -
1. A socket is defined as endpoint for communication, a pair of sockets is used by the pair of processes.
2. It is made of IP address chained with a port number.
3. They use the client server architecture.
4. Server waits for incoming client requests by listening to specified port.
5. On reception of request, server accepts connection from client socket to complete the connection.