Post from future :)
The inet_pton() function is a useful tip, I don’t remember seeing that back when I read Beej’s tutorial ten years ago. :)
I’m kind of surprised that Linux has the “abstract Unix sockets” feature and I’m curious as to why it exists? This seems like it’s begging to accidentally leak information to/from a chroot jail (yes I know containers exist now) and I don’t think it is a huge advantage over creating a standard portable Unix socket with 777 perms in a world readable directory?