|
SourceForge Jpcap | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PacketCapture.Direction>
net.sourceforge.jpcap.capture.PacketCapture.Direction
public static enum PacketCapture.Direction
Capture Direction enumeration.
This is used in the PacketCapture.setDirection(net.sourceforge.jpcap.capture.PacketCapture.Direction)
method
to determine the 'direction' of packet capture,
i.e. whether to capture packets coming in, going out, or both.
The values of these correspond with the same items in pcap.h.
Enum Constant Summary | |
---|---|
PCAP_D_IN
PCAP_D_IN will only capture packets received by the device. |
|
PCAP_D_INOUT
PCAP_D_INOUT will capture packets received by or sent by the device. |
|
PCAP_D_OUT
PCAP_D_OUT will only capture packets sent by the device. |
Method Summary | |
---|---|
static PacketCapture.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PacketCapture.Direction[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PacketCapture.Direction PCAP_D_INOUT
public static final PacketCapture.Direction PCAP_D_IN
public static final PacketCapture.Direction PCAP_D_OUT
Method Detail |
---|
public static final PacketCapture.Direction[] values()
for(PacketCapture.Direction c : PacketCapture.Direction.values()) System.out.println(c);
public static PacketCapture.Direction valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |