Advanced #Programming in the #UNIX Environment
Week 9, socket(PF_LOCAL, SOCK_DGRAM, 0)
In this segment, we introduce the #sockets API by an example of datagram connections in the PF_LOCAL (formerly AF_UNIX) domain.
These “Unix domain sockets” appear in the filesystem (S_ISSOCK), but serve only as rendezvous point. I/O can be done using read(2)/write(2) or recv(2)/send(2).