public enum Protocol extends Enum<Protocol>
| Modifier and Type | Class and Description |
|---|---|
static class |
Protocol.Layer |
| Enum Constant and Description |
|---|
ARP |
ETHERNET_II |
ICMP |
ICMP6 |
IGMP |
IPv4 |
IPv6 |
PCAP |
RTCP |
RTP |
SCTP |
SDP |
SIP |
SLL |
TCP |
TLS |
UDP |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
Long |
getLinkType() |
String |
getName()
The short name of this protocol.
|
Protocol.Layer |
getProtocolLayer()
Each
Protocol operates within a particular Protocol.Layer in the
ISO stack. |
String |
toString() |
static Protocol |
valueOf(byte code)
Get a protocol based on it's defined byte code.
|
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol ICMP
public static final Protocol ICMP6
public static final Protocol IGMP
public static final Protocol TLS
public static final Protocol TCP
public static final Protocol UDP
public static final Protocol SCTP
public static final Protocol SIP
public static final Protocol SDP
public static final Protocol ETHERNET_II
public static final Protocol SLL
public static final Protocol IPv4
public static final Protocol IPv6
public static final Protocol PCAP
public static final Protocol RTP
public static final Protocol RTCP
public static final Protocol ARP
public static final Protocol UNKNOWN
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
public Protocol.Layer getProtocolLayer()
Protocol operates within a particular Protocol.Layer in the
ISO stack. This is mainly used by the FramerManager when trying
to determine which Framers it should consult when trying to
figure out which framer to use.public static Protocol valueOf(byte code)
code - public Long getLinkType()
Copyright © 2021. All Rights Reserved.