SourceForge Jpcap

net.sourceforge.jpcap.capture
Interface PacketListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CaptureTest, CaptureTool, JWinPcapTest

public interface PacketListener
extends EventListener

Packet data listener.

Applications interested in listening for packets must register with PacketCapture and implement PacketListener.

Version:
$Revision: 1.1 $
Author:
Patrick Charles and Jonas Lehmann, Esmond Pitt
Last modified by:
$Author: esmondpitt $
Last modified at:
$Date: 2008/08/21 02:57:58 $

Method Summary
 void packetArrived(Packet packet)
          Callback, called when PacketCapture.capture(int) captures a packet.
 

Method Detail

packetArrived

void packetArrived(Packet packet)
Callback, called when PacketCapture.capture(int) captures a packet.

Parameters:
packet - Packet that has been captured.
See Also:
Object.clone()

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.