Is it possible to analyze traffic (incoming packets) at the Java level?
If possible, how is it right to do so?
I would recommend PCAP https://ru.wikipedia.org/wiki/Pcap Use jNetPcap ( http://jnetpcap.com/ ) PCAP is the standard solution for your own such programs
Source: https://ru.stackoverflow.com/questions/518582/
All Articles