Why socket is a file in Linux?

Why socket is a file in Linux?
Answer
A socket is a
special file used for inter-process communication, which enables communication between two processes. In addition to sending data, processes can send file descriptors across a Unix domain socket connection using the sendmsg() and recvmsg() system calls.
 

Tìm kiếm

Back
Top