Package jpcap
Interface PacketReceiver
public interface PacketReceiver
This interface is used to define a method to analyze the captured packets,
which is used in JpcapCaptor.handlePacket() or JpcapCaptor.processPacket()
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Analyzes a packet.
This method is called everytime a packet is captured.
-
Method Details
-
receivePacket
Analyzes a packet.
This method is called everytime a packet is captured.- Parameters:
p
- A packet to be analyzed
-