|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JCaptureHeader
Interface to to capture header provided by the capturing library. For example
PcapHeader, the capture header provided by libpcap,
implements this interface which provides access to minimum set of information
about the capture packet.
| Method Summary | |
|---|---|
int |
caplen()
Retrieves the length of the packet that was actually captured. |
void |
caplen(int caplen)
|
void |
initFrom(JCaptureHeader captureHeader)
|
long |
nanos()
Fractional part of the second when the packet was captured. |
void |
nanos(long nanos)
|
long |
seconds()
Capture timestamp in UNIX seconds |
void |
seconds(long seconds)
|
long |
timestampInMicros()
|
long |
timestampInMillis()
|
long |
timestampInNanos()
|
int |
wirelen()
Retrieves the length of the packet before any of it was truncated by the capture mechanism. |
void |
wirelen(int wirelen)
|
| Method Detail |
|---|
int caplen()
wirelen().
int wirelen()
long seconds()
long nanos()
long timestampInMillis()
long timestampInNanos()
long timestampInMicros()
void seconds(long seconds)
seconds - void nanos(long nanos)
nanos - void caplen(int caplen)
caplen - void wirelen(int wirelen)
wirelen - void initFrom(JCaptureHeader captureHeader)
captureHeader -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||