jpcap
Interface JpcapHandler


public interface JpcapHandler

This interface is used to define a method to analyze the captured packets, which is used in Jpcap.handlePacket() or Jpcap.processPacket()

See Also:
Jpcap.processPacket(int,JpcapHandler), Jpcap.loopPacket(int,JpcapHandler)

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

This method is called everytime a packet is captured.
 

Method Detail

handlePacket

public void handlePacket(Packet p)
Analyzes a packet.

This method is called everytime a packet is captured.

Parameters:
p - A packet to be analyzed