SourceForge Jpcap

net.sourceforge.jpcap.capture
Enum JWinPcap.OpenFlags

java.lang.Object
  extended by java.lang.Enum<JWinPcap.OpenFlags>
      extended by net.sourceforge.jpcap.capture.JWinPcap.OpenFlags
All Implemented Interfaces:
Serializable, Comparable<JWinPcap.OpenFlags>
Enclosing class:
JWinPcap

public static enum JWinPcap.OpenFlags
extends Enum<JWinPcap.OpenFlags>

Open flags, for use with open().

See Also:
JWinPcap.open(java.lang.String, boolean)

Enum Constant Summary
DataTxUDP
          Defines if the data transfer (in case of a remote capture) has to be done with UDP protocol.
MaxResponsiveness
          This flag configures the adapter for maximum responsiveness.
NoCaptureLocal
          Defines if the local adapter will capture its own generated traffic.
NoCaptureRemote
          Defines if the remote probe will capture its own generated traffic.
Promiscuous
          Defines if the adapter has to go in promiscuous mode.
 
Method Summary
static JWinPcap.OpenFlags valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JWinPcap.OpenFlags[] 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

Promiscuous

public static final JWinPcap.OpenFlags Promiscuous
Defines if the adapter has to go in promiscuous mode.


DataTxUDP

public static final JWinPcap.OpenFlags DataTxUDP
Defines if the data transfer (in case of a remote capture) has to be done with UDP protocol.


NoCaptureRemote

public static final JWinPcap.OpenFlags NoCaptureRemote
Defines if the remote probe will capture its own generated traffic. Note that by default, it will do so.


NoCaptureLocal

public static final JWinPcap.OpenFlags NoCaptureLocal
Defines if the local adapter will capture its own generated traffic. Note that by default, it will do so.


MaxResponsiveness

public static final JWinPcap.OpenFlags MaxResponsiveness
This flag configures the adapter for maximum responsiveness.

Method Detail

values

public static final JWinPcap.OpenFlags[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(JWinPcap.OpenFlags c : JWinPcap.OpenFlags.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static JWinPcap.OpenFlags valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.