|
SourceForge Jpcap | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpcap.capture.PacketDispatcher
public abstract class PacketDispatcher
This class encapsulates a mechanism for dispatching network data and packets to a listener who has subscribed to such events.
Since this class doesn't contain an implementation for handling real network data, it is abstract.
This class is extended by packet capture systems which, although they may utilize different sources of packet data, share a common mechanism for dispatching the packets.
Constructor Summary | |
---|---|
PacketDispatcher()
|
Method Summary | |
---|---|
void |
addPacketListener(PacketListener objListener)
Register a packet object listener with this capture system. |
void |
addRawPacketListener(RawPacketListener rawListener)
Register a raw packet listener with this capture system. |
void |
removePacketListener(PacketListener objListener)
Deregister a packet object listener from this capture system. |
void |
removeRawPacketListener(RawPacketListener rawListener)
Deregister a raw packet listener from this capture system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacketDispatcher()
Method Detail |
---|
public void addRawPacketListener(RawPacketListener rawListener)
PacketDispatchCapable
addRawPacketListener
in interface PacketDispatchCapable
rawListener
- the raw packet listener to add to the notification
list.public void removeRawPacketListener(RawPacketListener rawListener)
PacketDispatchCapable
removeRawPacketListener
in interface PacketDispatchCapable
rawListener
- the raw packet listener to remove from the
notification list.public void addPacketListener(PacketListener objListener)
PacketDispatchCapable
addPacketListener
in interface PacketDispatchCapable
objListener
- the packet listener to add to the notification list.public void removePacketListener(PacketListener objListener)
PacketDispatchCapable
removePacketListener
in interface PacketDispatchCapable
objListener
- the packet listener to remove from the
notification list.
|
Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |