Skip to main content

Posts

Showing posts with the label Pipe

Socket in Computer Network

A   socket   is one endpoint of a   two way   communication link between two programs running on the network. The socket mechanism provides a means of inter-process communication (IPC) by establishing named contact points between which the communication take place. Like ‘Pipe’ is used to create pipes and sockets is created using   ‘socket’   system call. The socket provides bidirectional   FIFO   Communication facility over the network. A socket connecting to the network is created at each end of the communication. Each socket has a specific address. This address is composed of an IP address and a port number. Socket are generally employed in client server applications. The server creates a socket, attaches it to a network port addresses then waits for the client to contact it. The client creates a socket and then attempts to connect to the server socket. When the connection is established, transfer of data takes place. Types of Soc...