Package jpcap.packet
Class Packet
java.lang.Object
jpcap.packet.Packet
- All Implemented Interfaces:
Serializable
This is a root class of the all the packets captured by
Jpcap.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintCaptured lengthbyte[]Packet data (excluding the header)Datalink layer headerstatic final PacketReturned by JpcapCaptor.getPacket() when EOF was reached while reading from an offline file.byte[]Header dataintLength of this packetlongCaptured timestamp (sec)longCaptured timestamp (micro sec) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sec
public long secCaptured timestamp (sec) -
usec
public long usecCaptured timestamp (micro sec) -
caplen
public int caplenCaptured length -
len
public int lenLength of this packet -
datalink
Datalink layer header -
header
public byte[] headerHeader data -
data
public byte[] dataPacket data (excluding the header) -
EOF
Returned by JpcapCaptor.getPacket() when EOF was reached while reading from an offline file.
-
-
Constructor Details
-
Packet
public Packet()
-
-
Method Details