パッケージ org.pcap4j.packet
クラス TcpPacket.TcpHeader
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractHeader
-
- org.pcap4j.packet.TcpPacket.TcpHeader
-
- すべての実装されたインタフェース:
Serializable,Packet.Header,TransportPacket.TransportHeader
- 含まれているクラス:
- TcpPacket
public static final class TcpPacket.TcpHeader extends AbstractPacket.AbstractHeader implements TransportPacket.TransportHeader
- 導入されたバージョン:
- pcap4j 0.9.12
- 作成者:
- Kaito Yamada
- 関連項目:
- 直列化された形式
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected StringbuildString()This method builds the valuetoString()will return.protected intcalcHashCode()This method builds the valuehashCode()will return using the byte arraygetRawData()returns.protected intcalcLength()This method calculates the valuelength()will return by adding up the lengths of byte arrays in the listgetRawFields()returns.booleanequals(Object obj)Indicates whether some other object is "equal to" this one using return values ofgetRawData().booleangetAck()intgetAcknowledgmentNumber()longgetAcknowledgmentNumberAsLong()shortgetChecksum()bytegetDataOffset()intgetDataOffsetAsInt()TcpPortgetDstPort()booleangetFin()List<TcpPacket.TcpOption>getOptions()byte[]getPadding()booleangetPsh()protected List<byte[]>getRawFields()Returns a list of byte arrays which represents this header's fields.bytegetReserved()booleangetRst()intgetSequenceNumber()longgetSequenceNumberAsLong()TcpPortgetSrcPort()booleangetSyn()booleangetUrg()shortgetUrgentPointer()intgetUrgentPointerAsInt()shortgetWindow()intgetWindowAsInt()-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
-
インタフェースから継承されたメソッド org.pcap4j.packet.Packet.Header
getRawData, length
-
-
-
-
メソッドの詳細
-
getSrcPort
public TcpPort getSrcPort()
- 定義:
getSrcPortインタフェース内TransportPacket.TransportHeader- 戻り値:
- Source port
-
getDstPort
public TcpPort getDstPort()
- 定義:
getDstPortインタフェース内TransportPacket.TransportHeader- 戻り値:
- Destination port
-
getSequenceNumber
public int getSequenceNumber()
- 戻り値:
- sequenceNumber
-
getSequenceNumberAsLong
public long getSequenceNumberAsLong()
- 戻り値:
- sequenceNumber
-
getAcknowledgmentNumber
public int getAcknowledgmentNumber()
- 戻り値:
- acknowledgmentNumber
-
getAcknowledgmentNumberAsLong
public long getAcknowledgmentNumberAsLong()
- 戻り値:
- acknowledgmentNumber
-
getDataOffset
public byte getDataOffset()
- 戻り値:
- dataOffset
-
getDataOffsetAsInt
public int getDataOffsetAsInt()
- 戻り値:
- dataOffset
-
getReserved
public byte getReserved()
- 戻り値:
- reserved
-
getUrg
public boolean getUrg()
- 戻り値:
- urg
-
getAck
public boolean getAck()
- 戻り値:
- ack
-
getPsh
public boolean getPsh()
- 戻り値:
- psh
-
getRst
public boolean getRst()
- 戻り値:
- rst
-
getSyn
public boolean getSyn()
- 戻り値:
- syn
-
getFin
public boolean getFin()
- 戻り値:
- fin
-
getWindow
public short getWindow()
- 戻り値:
- window
-
getWindowAsInt
public int getWindowAsInt()
- 戻り値:
- window
-
getChecksum
public short getChecksum()
- 戻り値:
- checksum
-
getUrgentPointer
public short getUrgentPointer()
- 戻り値:
- urgentPointer
-
getUrgentPointerAsInt
public int getUrgentPointerAsInt()
- 戻り値:
- urgentPointer
-
getOptions
public List<TcpPacket.TcpOption> getOptions()
- 戻り値:
- options
-
getPadding
public byte[] getPadding()
- 戻り値:
- padding
-
getRawFields
protected List<byte[]> getRawFields()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderReturns a list of byte arrays which represents this header's fields. This method is called bycalcLength()andbuildRawData().- 定義:
getRawFieldsクラス内AbstractPacket.AbstractHeader- 戻り値:
- a list of byte arrays which represents this header's fields
-
calcLength
protected int calcLength()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderThis method calculates the valuelength()will return by adding up the lengths of byte arrays in the listgetRawFields()returns.- オーバーライド:
calcLengthクラス内AbstractPacket.AbstractHeader- 戻り値:
- a calculated length
-
buildString
protected String buildString()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderThis method builds the valuetoString()will return.- オーバーライド:
buildStringクラス内AbstractPacket.AbstractHeader- 戻り値:
- a string representation of this object
-
equals
public boolean equals(Object obj)
クラスからコピーされた説明:AbstractPacket.AbstractHeaderIndicates whether some other object is "equal to" this one using return values ofgetRawData(). This method should be overridden so that it does more strict comparisons more efficiently.- オーバーライド:
equalsクラス内AbstractPacket.AbstractHeader
-
calcHashCode
protected int calcHashCode()
クラスからコピーされた説明:AbstractPacket.AbstractHeaderThis method builds the valuehashCode()will return using the byte arraygetRawData()returns. This method may be better to be overridden for performance reason.- オーバーライド:
calcHashCodeクラス内AbstractPacket.AbstractHeader- 戻り値:
- a calculated hash code value for the object
-
-