When we create Unix Domain (AF_UNIX) sockets, we create a socket path in the file system, but what if we do not create a specific file-system path for the socket connection.
The abstract namespace socket allows the creation of a socket connection which does not require a path to be created. Abstract namespace sockets disappear as soon as all open instances of the socket are removed. This is in contrast to file-system paths, which need to have the remove API invoked in code so that previous instances of the socket connection are removed.
Abstract Namespace code might not be very portable and hence not many implementations of the code are seen in practical applications.
we will look at the AF_UNIX abstract namespace examples for a stream and data-gram socket.
Pingback: Abstract Namespace AF_UNIX stream socket code example | Hitch Hiker's Guide to Learning