|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.packet.JMemoryPacket.JMemoryHeader
public static class JMemoryPacket.JMemoryHeader
A capture header that stores information about the creation of the packet.
| Constructor Summary | |
|---|---|
JMemoryPacket.JMemoryHeader()
Creates an empty capture header |
|
JMemoryPacket.JMemoryHeader(int caplen,
int wirelen,
long seconds,
long nanos)
Creates a capture header with initial values |
|
| Method Summary | |
|---|---|
int |
caplen()
Gets the capture length |
void |
caplen(int caplen)
|
int |
getWirelen()
Gets the wire length |
void |
init(int caplen,
int wirelen,
long nanos,
long seconds)
Reinitialized the header to new state |
void |
initFrom(JCaptureHeader header)
|
long |
nanos()
Gets the timestamp fraction in nanos |
void |
nanos(long nanos)
|
long |
seconds()
Gets the timestamp in seconds |
void |
seconds(long seconds)
|
void |
setWirelen(int wirelen)
Sets the states wire length |
long |
timestampInMicros()
Gets the timestamp in micro seconds |
long |
timestampInMillis()
Gets the timestamp in millis |
long |
timestampInNanos()
|
int |
wirelen()
Gets the wire length |
void |
wirelen(int wirelen)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMemoryPacket.JMemoryHeader()
public JMemoryPacket.JMemoryHeader(int caplen,
int wirelen,
long seconds,
long nanos)
caplen - captured lengthwirelen - wire lengthseconds - timestamp in secondsnanos - nanos fraction of the timestamp| Method Detail |
|---|
public int caplen()
caplen in interface JCaptureHeaderpublic void caplen(int caplen)
caplen in interface JCaptureHeaderpublic final int getWirelen()
public void init(int caplen,
int wirelen,
long nanos,
long seconds)
caplen - capture lengthwirelen - wirelengthnanos - timestamp fraction in nanosseconds - timestap in secondspublic void initFrom(JCaptureHeader header)
initFrom in interface JCaptureHeaderpublic long nanos()
nanos in interface JCaptureHeaderpublic void nanos(long nanos)
nanos in interface JCaptureHeaderpublic long seconds()
seconds in interface JCaptureHeaderpublic void seconds(long seconds)
seconds in interface JCaptureHeaderpublic final void setWirelen(int wirelen)
wirelen - length on the packet on the network wirepublic long timestampInMillis()
timestampInMillis in interface JCaptureHeaderpublic long timestampInMicros()
timestampInMicros in interface JCaptureHeaderpublic long timestampInNanos()
timestampInNanos in interface JCaptureHeaderpublic int wirelen()
wirelen in interface JCaptureHeaderpublic void wirelen(int wirelen)
wirelen in interface JCaptureHeader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||