クラス ProtocolFamily
- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<Integer,ProtocolFamily>
-
- org.pcap4j.packet.namednumber.ProtocolFamily
-
- すべての実装されたインタフェース:
Serializable
,Comparable<ProtocolFamily>
public final class ProtocolFamily extends NamedNumber<Integer,ProtocolFamily>
Protocol Family- 導入されたバージョン:
- pcap4j 1.5.0
- 作成者:
- Kaito Yamada
- 関連項目:
- sys/socket.h, 直列化された形式
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static ProtocolFamily
PF_INET
PF_INET (IPv4).static ProtocolFamily
PF_INET6
PF_INET6 (IPv6).static ProtocolFamily
PF_LINK
PF_LINK (Link layer interface).static ProtocolFamily
PF_UNSPEC
PF_UNSPEC (unspecified): 0
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 ProtocolFamily(Integer value, String name)
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 int
compareTo(ProtocolFamily o)
static ProtocolFamily
getInstance(Integer value)
static ProtocolFamily
register(ProtocolFamily type)
String
valueAsString()
-
-
-
フィールドの詳細
-
PF_UNSPEC
public static final ProtocolFamily PF_UNSPEC
PF_UNSPEC (unspecified): 0
-
PF_INET
public static final ProtocolFamily PF_INET
PF_INET (IPv4). This value is set to 0xFFFF &Inets.AF_INET
.
-
PF_LINK
public static final ProtocolFamily PF_LINK
PF_LINK (Link layer interface). This value is set to 0xFFFF &Inets.AF_LINK
.
-
PF_INET6
public static final ProtocolFamily PF_INET6
PF_INET6 (IPv6). This value is set to 0xFFFF &Inets.AF_INET6
.
-
-
メソッドの詳細
-
getInstance
public static ProtocolFamily getInstance(Integer value)
- パラメータ:
value
- value- 戻り値:
- a ProtocolFamily object.
-
register
public static ProtocolFamily register(ProtocolFamily type)
- パラメータ:
type
- type- 戻り値:
- a ProtocolFamily object.
-
valueAsString
public String valueAsString()
- オーバーライド:
valueAsString
クラス内NamedNumber<Integer,ProtocolFamily>
- 戻り値:
- a string representation of this value.
-
compareTo
public int compareTo(ProtocolFamily o)
- 定義:
compareTo
インタフェース内Comparable<ProtocolFamily>
- 定義:
compareTo
クラス内NamedNumber<Integer,ProtocolFamily>
-
-