What is the difference between FIFOs and Sockets?

Hello guyz

I would like to know the differences between FIFOs(First In First Out) and Sockets. With a well provided explanation can somebody please help me out to understand this. The little i know i they help to transfer information…

Thanks for your help.

A FIFO (or named pipe) is limited to communicating between processes on the same system. This is limited to sending messages in one direction, using read() and write() calls.

A Unix socket is used for bi-drectional communication between processes on a single system. An Internet socket can be used for bi-directional communication between two processes on the same system, or on different systems. Both types of sockets use the networking interface with select(), bind(), and, depending on whether the communication protocol is UDP or TCP, send() and recv() calls or read() and write().

1 Like

@eager Thanks so much…