public final class TcpPacket extends AbstractPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpPacket.Builder |
static class |
TcpPacket.TcpHeader |
static interface |
TcpPacket.TcpOption
The interface representing a TCP option.
|
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderPacket.Header| Modifier and Type | Method and Description |
|---|---|
TcpPacket.Builder |
getBuilder()
Returns a new Builder object populated with this object's fields' values.
|
TcpPacket.TcpHeader |
getHeader()
Returns the Header object representing this packet's header.
|
Packet |
getPayload()
Returns the Packet object representing this packet's payload.
|
boolean |
hasValidChecksum(InetAddress srcAddr,
InetAddress dstAddr,
boolean acceptZero)
checksum varification is necessary for IPv6(i.e.
|
static TcpPacket |
newPacket(byte[] rawData,
int offset,
int length)
A static factory method.
|
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toStringpublic static TcpPacket newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int),
which may throw exceptions undocumented here.rawData - offset - length - IllegalRawDataExceptionpublic TcpPacket.TcpHeader getHeader()
AbstractPacketgetHeader in interface PacketgetHeader in class AbstractPacketpublic Packet getPayload()
AbstractPacketgetPayload in interface PacketgetPayload in class AbstractPacketpublic boolean hasValidChecksum(InetAddress srcAddr, InetAddress dstAddr, boolean acceptZero)
srcAddr - dstAddr - acceptZero - public TcpPacket.Builder getBuilder()
PacketgetBuilder in interface PacketgetBuilder in class AbstractPacketCopyright © 2015. All Rights Reserved.