Hey everybody good morning,
Are there any good solutions or libraries for detecting dynamically at run-time when a new NetworkInterface gets created - due to things such as the end-user physically plugging in a new Ethernet rj45 cable into their NIC(s)?
Does
java provide any listeners to use that would receive an event being fired when a new NetworkInterface has been created / made available?
Right now, I have to run a
thread and call NetworkInterface.getNetworkInterfaces() at my predefined interval of seconds throughout the lifetime of the program (which is wasting cpu/memory resources)
I also have to do this to detect when a NetworkInterface has been "taken away" / made unavailable.
Thanks!