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()

See Also:
JpcapCaptor.processPacket(int,PacketReceiver), JpcapCaptor.loopPacket(int,PacketReceiver)

Method Summary
 void receivePacket(Packet p)
          Analyzes a packet.

This method is called everytime a packet is captured.
 

Method Detail

receivePacket

void receivePacket(Packet p)
Analyzes a packet.

This method is called everytime a packet is captured.

Parameters:
p - A packet to be analyzed