I know that there are named sockets & named pipes (fifo) in Linux.
ls -l, they would look as below: (I have changed the filenames, for demonstration.)
prw-r--r-- 1 root root 0 Nov 8 16:31 /tmp/fifo srwxrwxrwx 1 root root 0 Nov 8 15:54 /tmp/socket
Now, a named pipe can be created using
mkfifo. Is there a command for creating a named socket?
Last option would be to write a C program, which would call mknod function, but wanted to know, if there is already a command for that.
What I have tried:
I tried to search for any options to mknod & mkfifo, but could not find one.
NOTE: I am not discussing about server-client model over Ethernet/network. The named socket file will be used by 2 processes on the same system.