I have found the example of using the local sockets. The code from examle uses the path
#define UNIXSTR_PATH "/tmp/unix.str"
as the name of a socket. Is this a best practice of choosing the socket name? Should I use something like
/var/run/com.company.executable.socket
writing the daemon on Linux Ubuntu?
Putting it in
/var/runis fine, but the sockets are usually named after the executable itself and not in some Javaesque fashion.