Why do we need socket Why socket is a file in Linux?

Như Quỳnh

New member
Why do we need socket Why socket is a file in Linux?
Answer
Sockets
allow communication between two different processes on the same or different machines. To be more precise, it’s a way to talk to other computers using standard Unix file descriptors. … This is because commands such as read() and write() work with sockets in the same way they do with files and pipes.
 

Tìm kiếm

Back
Top