How do I read a Unix socket?

How do I read a Unix socket?
Answer
How to make a Server
  1. Create a socket with the socket() system call.
  2. Bind the socket to an address using the bind() system call. …
  3. Listen for connections with the listen() system call.
  4. Accept a connection with the accept() system call. …
  5. Send and receive data using the read() and write() system calls.
 

Tìm kiếm

Back
Top