I am trying to control network sessions on a server with event-driven programming (rather than polling on /proc/net/tcpor udp).
I managed to find this article , but it gives only one look at the current state, and not at the event with each change (LISTEN, CREATED ...).
Is it possible to use this, as in this article , which tracks changes in processes, but in network connections?
If not, is there any other API I can use to achieve this without polling /porc/net/*in the interval?
source
share