Firstly directory is empty, we create inotify on it
then in directory we have new socket and my process want to keep eyes on this socket (receive and send messages) and monitor if new socket is created.
When second socket appears in directory process should be able to react on communication with these sockets and check if another socket will appear.
Normally I would use something like epoll but I am not sure ...
Assume we have directory and we want.
i.e.
Firstly directory is empty, we create inotify on it then in directory we have new socket and my process want to keep eyes on this socket (receive and send messages) and monitor if new socket is created. When second socket appears in directory process should be able to react on communication with these sockets and check if another socket will appear. Normally I would use something like epoll but I am not sure ...