|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.util.PcapPacketSupport
public class PcapPacketSupport
A utility class that dispatches a PcapPacket to any number of listeners. The packet is simply forwarded to any listeners as is.
| Constructor Summary | |
|---|---|
PcapPacketSupport()
|
|
| Method Summary | ||
|---|---|---|
|
add(PcapPacketHandler<T> o,
T user)
Adds the. |
|
void |
fireNextPacket(PcapPacket packet)
Fire next packet. |
|
void |
nextPacket(PcapPacket packet,
java.lang.Object user)
Next packet. |
|
boolean |
remove(PcapPacketHandler<?> o)
Removes the. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PcapPacketSupport()
| Method Detail |
|---|
public <T> boolean add(PcapPacketHandler<T> o,
T user)
T - the generic typeo - the ouser - the user
public boolean remove(PcapPacketHandler<?> o)
o - the o
public void fireNextPacket(PcapPacket packet)
packet - the packet
public void nextPacket(PcapPacket packet,
java.lang.Object user)
nextPacket in interface PcapPacketHandler<java.lang.Object>packet - the packetuser - the userPcapPacketHandler.nextPacket(org.jnetpcap.packet.PcapPacket,
java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||