|
|||||||||
| 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, MAX_DIRECT_MEMORY_DEFAULT, POINTER |
| Constructor Summary | |
|---|---|
JScan()
Alocates and creates scan_t structure in native memory. |
|
JScan(JMemory.Type type)
Creates an uninitialized scan structure. |
|
| Method Summary | |
|---|---|
int |
record_header()
Record_header. |
void |
record_header(int value)
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_gap()
Scan_gap. |
void |
scan_gap(int value)
Scan_gap. |
int |
scan_id()
Scan_id. |
void |
scan_id(int id)
Scan_id. |
int |
scan_length()
Scan_length. |
void |
scan_length(int length)
Scan_length. |
int |
scan_next_id()
Scan_next_id. |
void |
scan_next_id(int next_id)
Scan_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. |
int |
scan_payload()
Scan_payload. |
void |
scan_payload(int value)
Scan_payload. |
int |
scan_postix()
Scan_postix. |
void |
scan_postix(int value)
Scan_postix. |
int |
scan_prefix()
Scan_prefix. |
void |
scan_prefix(int value)
Scan_prefix. |
void |
scan_set_lengths(int prefix,
int header,
int gap,
int payload,
int postfix)
Sets all the various lengths in the header structure all at once. |
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 java.lang.Object |
|---|
clone, equals, finalize, 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)
id - the idpublic void scan_next_id(int next_id)
next_id - the next_idpublic void scan_length(int length)
length - the lengthpublic int scan_prefix()
public int scan_gap()
public int scan_payload()
public int scan_postix()
public int record_header()
public void scan_prefix(int value)
value - the valuepublic void scan_gap(int value)
value - the valuepublic void scan_payload(int value)
value - the valuepublic void scan_postix(int value)
value - the valuepublic void record_header(int value)
value - the value
public void scan_set_lengths(int prefix,
int header,
int gap,
int payload,
int postfix)
prefix - prefix length in bytes before the headerheader - length of the header (same as scan_length(int))gap - length of the gap between header and payloadpayload - length of payloadpostfix - length of postfix after the payloadpublic 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 | ||||||||