Package net.sourceforge.jpcap.capture

Provides an interface for capturing packets and a layer of abstraction around libpcap, a portable native system library for capturing network packets.

See:
          Description

Interface Summary
PacketCaptureCapable This is the packet capture interface.
PacketDispatchCapable An interface for classes capable of dispatching captured network packets.
PacketListener Packet data listener.
RawPacketListener Raw packet data listener.
 

Class Summary
CaptureStatistics Packet capture statistics.
CaptureTest Class to exercise PacketCapture.
PacketCapture This class is the core of packet capture in jpcap.
PacketCaptureBase This class contains base functionality shared by both the simulator and the actual packet capture system.
PacketDispatcher This class encapsulates a mechanism for dispatching network data and packets to a listener who has subscribed to such events.
SyncPacketCapture This class adds to PacketCapture the ability to explicitly terminate a capture session using close().
 

Exception Summary
CaptureConfigurationException This exception occurs when the capture client tries to specify a capture device that does not exist or if the capture device specified is illegal.
CaptureDeviceInvalidException This exception occurs when the capture client tries to specify a capture device that does not exist or if the capture device specified is illegal.
CaptureDeviceLookupException This exception occurs when no capture devices are detected.
CaptureDeviceNotFoundException This exception occurs when no capture devices are detected.
CaptureDeviceOpenException This exception occurs when the capture device cannot be opened.
CaptureFileOpenException This exception occurs when the savefile cannot be opened.
CapturePacketException This exception occurs when an error occurs while capturing data.
InvalidFilterException This exception occurs when an error occurs while capturing data.
 

Package net.sourceforge.jpcap.capture Description

Provides an interface for capturing packets and a layer of abstraction around libpcap, a portable native system library for capturing network packets.

PacketCapture is the core of the packet capture system provided by jpcap.

Applications wishing to capture network packets create an instance of PacketCapture and call its methods in order to open a network device, set packet filters and ultimately receive packet data from the network.

PacketCapture utilizes a publish/subscribe pattern to broadcast packets to all objects which have registered as listeners for events of interest. Applications capturing network data must implement PacketListener and register with an instance of the capture system in order to receive packets.