|
|||||||||
| 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)
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)
Inits the from. |
long |
nanos()
Gets the timestamp fraction in nanos. |
void |
nanos(long nanos)
Nanos. |
long |
seconds()
Gets the timestamp in seconds. |
void |
seconds(long seconds)
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()
Timestamp in nanos. |
int |
wirelen()
Gets the wire length. |
void |
wirelen(int wirelen)
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 JCaptureHeadercaplen - the caplenJCaptureHeader.caplen(int)public 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 JCaptureHeaderheader - the headerJCaptureHeader.initFrom(org.jnetpcap.JCaptureHeader)public long nanos()
nanos in interface JCaptureHeaderpublic void nanos(long nanos)
nanos in interface JCaptureHeadernanos - the nanosJCaptureHeader.nanos(long)public long seconds()
seconds in interface JCaptureHeaderpublic void seconds(long seconds)
seconds in interface JCaptureHeaderseconds - the secondsJCaptureHeader.seconds(long)public final void setWirelen(int wirelen)
wirelen - length on the packet on the network wirepublic long timestampInMicros()
timestampInMicros in interface JCaptureHeaderpublic long timestampInMillis()
timestampInMillis in interface JCaptureHeaderpublic long timestampInNanos()
timestampInNanos in interface JCaptureHeaderJCaptureHeader.timestampInNanos()public int wirelen()
wirelen in interface JCaptureHeaderpublic void wirelen(int wirelen)
wirelen in interface JCaptureHeaderwirelen - the wirelenJCaptureHeader.wirelen(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||