|
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<JWinPcap.CaptureMode>
net.sourceforge.jpcap.capture.JWinPcap.CaptureMode
public static enum JWinPcap.CaptureMode
Capture mode, for use with setCaptureMode().
JWinPcap.setCaptureMode(net.sourceforge.jpcap.capture.JWinPcap.CaptureMode)| Enum Constant Summary | |
|---|---|
Capture
Packet capture mode. |
|
Monitor
Undocumented & unknown. |
|
Statistical
Statistics capture mode. |
|
| Method Summary | |
|---|---|
static JWinPcap.CaptureMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JWinPcap.CaptureMode[] |
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 JWinPcap.CaptureMode Capture
public static final JWinPcap.CaptureMode Statistical
StatisticsEvents are delivered to a
StatisticsListener.
You can use a StatisticsListener to compute packets per second
and bytes or bits per second, as shown in the tutorial
linked below.
JWinPcap.setCaptureMode(net.sourceforge.jpcap.capture.JWinPcap.CaptureMode),
JWinPcap.addStatisticsListener(net.sourceforge.jpcap.capture.StatisticsListener),
JWinPcap.removeStatisticsListener(net.sourceforge.jpcap.capture.StatisticsListener),
Gathering Statistics on the network traffic
public static final JWinPcap.CaptureMode Monitor
| Method Detail |
|---|
public static final JWinPcap.CaptureMode[] values()
for(JWinPcap.CaptureMode c : JWinPcap.CaptureMode.values())
System.out.println(c);
public static JWinPcap.CaptureMode 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 | |||||||||