I am looking to implement a reverse QoS system (because I do not have the resources to saturate my network in order to actually perform QoS). Everything I saw about capturing network traffic using Java seems to point to Jpcap - a 3+ year old library or other similar projects. Also, reading the java.net documentation did not help, although the ServerSocket class seems to be on the right track.
What I'm looking for is the source code of the library or a newer / supported infrastructure for this. I want to capture all packets coming over the network and throw them into buffers, and then free them from the buffers after a certain time, depending on the protocol that the packet carries.
I know how to create socket applications, but I donโt know how to go up (down technically) to interfaces. Help will be greatly appreciated!
source
share