public final class TcpTimestampsOption extends java.lang.Object implements TcpPacket.TcpOption
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpTimestampsOption.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
TcpTimestampsOption.Builder |
getBuilder() |
TcpOptionKind |
getKind() |
byte |
getLength() |
int |
getLengthAsInt() |
byte[] |
getRawData() |
int |
getTsEchoReply() |
long |
getTsEchoReplyAsLong() |
int |
getTsValue() |
long |
getTsValueAsLong() |
int |
hashCode() |
int |
length() |
static TcpTimestampsOption |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
java.lang.String |
toString() |
public static TcpTimestampsOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int),
which may throw exceptions undocumented here.rawData - rawDataoffset - offsetlength - lengthIllegalRawDataException - if parsing the raw data fails.public TcpOptionKind getKind()
getKind in interface TcpPacket.TcpOptionpublic byte getLength()
public int getLengthAsInt()
public int getTsValue()
public long getTsValueAsLong()
public int getTsEchoReply()
public long getTsEchoReplyAsLong()
public int length()
length in interface TcpPacket.TcpOptionpublic byte[] getRawData()
getRawData in interface TcpPacket.TcpOptionpublic TcpTimestampsOption.Builder getBuilder()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.