If you want to capture network packets, implement PacketListener and register with an instance of this class. When packets arrive, the object will call you back via packetArrived().
Examples can be found in net.sourceforge.jpcap.tutorial.
For more documentation on this class's methods, see PacketCaptureCapable; Javadoc is 'inherited' from this interface.
PacketCapture utilizes libpcap's pcap_loop(). See SyncPacketCapture for pcap_dispatch()-type behavior. @author Patrick Charles and Jonas Lehmann @version $Revision: 1.16 $ @lastModifiedBy $Author: pcharles $ @lastModifiedAt $Date: 2004/09/28 17:27:11 $
|
|
|
|