パッケージ org.pcap4j.packet
クラス SctpPacket.SctpHeader
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractHeader
-
- org.pcap4j.packet.SctpPacket.SctpHeader
-
- すべての実装されたインタフェース:
Serializable,Packet.Header,TransportPacket.TransportHeader
- 含まれているクラス:
- SctpPacket
public static final class SctpPacket.SctpHeader extends AbstractPacket.AbstractHeader implements TransportPacket.TransportHeader
SCTP header0 16 31 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Src Port | Dst Port | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Verification Tag | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Chunk #1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Chunk #n | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド 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().intgetChecksum()List<SctpPacket.SctpChunk>getChunks()SctpPortgetDstPort()protected List<byte[]>getRawFields()Returns a list of byte arrays which represents this header's fields.SctpPortgetSrcPort()intgetVerificationTag()-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
-
インタフェースから継承されたメソッド org.pcap4j.packet.Packet.Header
getRawData, length
-
-
-
-
メソッドの詳細
-
getSrcPort
public SctpPort getSrcPort()
- 定義:
getSrcPortインタフェース内TransportPacket.TransportHeader- 戻り値:
- Source port
-
getDstPort
public SctpPort getDstPort()
- 定義:
getDstPortインタフェース内TransportPacket.TransportHeader- 戻り値:
- Destination port
-
getVerificationTag
public int getVerificationTag()
- 戻り値:
- verification tag
-
getChecksum
public int getChecksum()
- 戻り値:
- checksum
-
getChunks
public List<SctpPacket.SctpChunk> getChunks()
- 戻り値:
- chunks
-
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
-
-