|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JStruct
org.jnetpcap.packet.JScan
public class JScan
A inprogress working scan structure. Used by JScanner to pass around information between various scan routines. This class is peered with scan_t structure that is used to pass information both between native header scanners and java scanners.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory |
|---|
JMemory.Type |
| Field Summary | |
|---|---|
static int |
END_OF_HEADERS_ID
Special header ID that when used with a scanner's next_id variable, indicates that this is the last header and scanner should exit its loop. |
| Fields inherited from class org.jnetpcap.nio.JMemory |
|---|
JNETPCAP_LIBRARY_NAME |
| Constructor Summary | |
|---|---|
JScan()
Alocates and creates scan_t structure in native memory |
|
JScan(JMemory.Type type)
Creates an uninitialized scan structure |
|
| Method Summary | |
|---|---|
void |
record_header()
|
void |
scan_buf_len(int size)
Size of packet data |
void |
scan_buf(JBuffer buffer)
Gets the current packet data buffer |
int |
scan_id()
|
void |
scan_id(int id)
|
int |
scan_length()
|
void |
scan_length(int length)
|
int |
scan_next_id()
|
void |
scan_next_id(int next_id)
|
int |
scan_offset()
Gets teh curren offset by the dscanner into the packet buffer |
void |
scan_offset(int offset)
Sets the current offset by the scanner into the packet buffer |
JPacket |
scan_packet()
Java packet that is being processed |
static int |
sizeof()
Size in bytes of the native scan_t structure on this particular platform |
| Methods inherited from class org.jnetpcap.nio.JStruct |
|---|
getStructName, toString |
| Methods inherited from class org.jnetpcap.nio.JMemory |
|---|
check, cleanup, finalize, isInitialized, isJMemoryBasedOwner, isOwner, peer, peer, peer, setSize, size, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int END_OF_HEADERS_ID
| Constructor Detail |
|---|
public JScan()
public JScan(JMemory.Type type)
type - memory type| Method Detail |
|---|
public int scan_id()
public int scan_next_id()
public int scan_length()
public void scan_id(int id)
public void scan_next_id(int next_id)
public void scan_length(int length)
public void record_header()
public static int sizeof()
public void scan_buf(JBuffer buffer)
buffer - packet data bufferpublic void scan_buf_len(int size)
size - length in bytespublic void scan_offset(int offset)
offset - offset in bytespublic JPacket scan_packet()
public int scan_offset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||