|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jpcap.capture.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 |
dispatchPacket(Packet packet)
Dispatch a packet to all registered listeners. |
void |
dispatchRawPacket(RawPacket rawPacket)
Dispatch a raw packet to all registered listeners. |
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)
addRawPacketListener
in interface PacketDispatchCapable
rawListener
- the raw packet listener to add to the notification
list.public void removeRawPacketListener(RawPacketListener rawListener)
removeRawPacketListener
in interface PacketDispatchCapable
rawListener
- the raw packet listener to remove from the
notification list.public void addPacketListener(PacketListener objListener)
addPacketListener
in interface PacketDispatchCapable
objListener
- the packet listener to add to the notification list.public void removePacketListener(PacketListener objListener)
removePacketListener
in interface PacketDispatchCapable
objListener
- the packet listener to remove from the
notification list.public void dispatchRawPacket(RawPacket rawPacket)
public void dispatchPacket(Packet packet)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |