Unix Domain Sockets: How to create a secure temp file name that doesn't exist as a file yet?

Is this not what you seek?

unix_domain_socket/1

I ran into Unix Domain Sockets for the first time during this topic: Docker API example