man 7 unix
struct sockaddr_un { sa_family_t sun_family; /* AF_UNIX */ char sun_path[108]; /* Pathname */ };
sun
is for socket unix
sizeof(sockaddr_un)
open
does not work on a socket.
unlink
or remove to get rid of the socket after we are finished.
nc -uU /tmp/DieServer
ssize_t recvfrom(int sockfd, void *restrict buf, size_t len, int flags,
struct sockaddr *restrict src_addr,
socklen_t *restrict addrlen);
ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen);
listen
accept
in place of just recvfrom
connect