com.gremwell.jnetbridge
Class IngressPacket

java.lang.Object
  extended by com.gremwell.jnetbridge.IngressPacket

public class IngressPacket
extends java.lang.Object

This class encapsulates an ingress packet. Instances of these objects are created by subclasses of Port and have to be scanned with JNetPcap's scan() before passing to ingress() method. It means that PortListeners (or their client) are free to use hasHeader() to directly access headers of Ethernet or higher level protocols. Each packet has a unique sequentially assigned id.


Field Summary
 int id
           
 org.jnetpcap.packet.JPacket packet
           
 Port port
           
 
Constructor Summary
protected IngressPacket(Port port, org.jnetpcap.packet.JPacket packet)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public final int id

port

public final Port port

packet

public final org.jnetpcap.packet.JPacket packet
Constructor Detail

IngressPacket

protected IngressPacket(Port port,
                        org.jnetpcap.packet.JPacket packet)