To create a bidirectional unix IPC:
- Server creates a sockets and
binds it to an address (typically a file). Do NOT useconnectas allsend/recvoperation will be done usingconnect's address! - Client creates a socket and
binds it to its own address. However the socketconnects to the address of server. - Server uses
recv_fromto get data from socket along side with the address of the client that sent the data. This way it can use the address to send a response back to client.