public static enum PcapHandle.PcapDirection extends Enum<PcapHandle.PcapDirection>
typedef enum { PCAP_D_INOUT = 0, PCAP_D_IN, PCAP_D_OUT } pcap_direction_t;
Enum Constant and Description |
---|
IN
Inbound only.
|
INOUT
Both inbound and outbound.
|
OUT
Outbound only,
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static PcapHandle.PcapDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PcapHandle.PcapDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PcapHandle.PcapDirection INOUT
public static final PcapHandle.PcapDirection IN
public static final PcapHandle.PcapDirection OUT
public static PcapHandle.PcapDirection[] values()
for (PcapHandle.PcapDirection c : PcapHandle.PcapDirection.values()) System.out.println(c);
public static PcapHandle.PcapDirection 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 int getValue()
Copyright © 2011–2019 Pcap4J.org. All rights reserved.