1.

What do you mean by Sockets in OS?

Answer»

The socket in OS is generally referred to as an endpoint for IPC (Interprocess Communication). Here, the endpoint is referred to as a combination of an IP address and port number.  Sockets are used to make it easy for software DEVELOPERS to create network-enabled programs. It also allows communication or exchange of INFORMATION between two different processes on the same or different machines. It is MOSTLY used in client-server-based systems. 

Types of Sockets

There are basically four types of sockets as given below:

  • STREAM Sockets
  • Datagram Sockets
  • Sequenced Packet Sockets
  • Raw Sockets


Discussion

No Comment Found