|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jnetpcap.winpcap.WinPcapSamp
public final class WinPcapSamp
Class peered with native pcap_samp
structure. This class can
change the capture algorithm used by WinPcap. By changing the values within
this specially peered object, before any capture takes place, you can
influence the sampling algorithm used during capture.
Field Summary | |
---|---|
static int |
FIRST_AFTER_N_MS
It defines that we have to return 1 packet every N milliseconds. |
static int |
NO_SAMP
No sampling has to be done on the current capture. |
static int |
ONE_EVERY_N
It defines that only 1 out of N packets must be returned to the user. |
Method Summary | |
---|---|
int |
getMethod()
Gets the current method type for capture sampling. |
int |
getValue()
This value depends on the sampling method defined. |
void |
setMethod(int method)
Sets the current method type for capturing sampling. |
void |
setValue(int value)
Sets the value. |
java.lang.String |
toString()
Returns the current values of this object as strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NO_SAMP
public static final int ONE_EVERY_N
public static final int FIRST_AFTER_N_MS
Method Detail |
---|
public int getMethod()
NO_SAMP
- No sampling has to be done on the
current captureONE_EVERY_N
- only 1 out of N packets must be
returned to the userFIRST_AFTER_N_MS
- return 1 packet every N
millisecondspublic void setMethod(int method)
method
- sampling type:
NO_SAMP
- No sampling has to be done on the
current captureONE_EVERY_N
- only 1 out of N packets must be
returned to the userFIRST_AFTER_N_MS
- return 1 packet every N
millisecondspublic int getValue()
public void setValue(int value)
value
- new value; this value depends on the sampling method definedpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |