|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.mac.MacMessage
jist.swans.mac.MacMessage.Data
public static class MacMessage.Data
An 802_11 Data packet.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jist.swans.mac.MacMessage |
---|
MacMessage.Ack, MacMessage.Cts, MacMessage.Data, MacMessage.Rts |
Field Summary | |
---|---|
private Message |
body
Packet data payload. |
private MacAddress |
dst
Packet destination address. |
private int |
duration
Packet transmission duration. |
private short |
frag
Packet fragment number. |
static short |
HEADER_SIZE
Packet header size. |
static short |
MAX_SEQ
Packet sequence number limit. |
private boolean |
moreFrag
Packet moreFlag bit. |
private short |
seq
Packet sequence number. |
private MacAddress |
src
Packet source address. |
Fields inherited from class jist.swans.mac.MacMessage |
---|
TYPE_ACK, TYPE_CTS, TYPE_DATA, TYPE_RTS |
Fields inherited from interface jist.swans.misc.Message |
---|
NULL |
Constructor Summary | |
---|---|
MacMessage.Data(MacAddress dst,
MacAddress src,
int duration,
Message body)
Create 802_11 data packet. |
|
MacMessage.Data(MacAddress dst,
MacAddress src,
int duration,
short seq,
short frag,
boolean moreFrag,
boolean retry,
Message body)
Create 802_11 data packet. |
Method Summary | |
---|---|
Message |
getBody()
Return packet data payload. |
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
MacAddress |
getDst()
Return packet destination address. |
int |
getDuration()
Return packet transmission time. |
short |
getFrag()
Return packet fragment number. |
short |
getSeq()
Return packet sequence number. |
int |
getSize()
Return packet size or Constants.ZERO_WIRE_SIZE. |
MacAddress |
getSrc()
Return packet source address. |
Methods inherited from class jist.swans.mac.MacMessage |
---|
getRetry, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short HEADER_SIZE
public static final short MAX_SEQ
private MacAddress dst
private MacAddress src
private int duration
private short seq
private short frag
private boolean moreFrag
private Message body
Constructor Detail |
---|
public MacMessage.Data(MacAddress dst, MacAddress src, int duration, short seq, short frag, boolean moreFrag, boolean retry, Message body)
dst
- packet destination addresssrc
- packet source addressduration
- packet transmission durationseq
- packet sequence numberfrag
- packet fragment numbermoreFrag
- packet moreFrag flagretry
- packet retry bitbody
- packet data payloadpublic MacMessage.Data(MacAddress dst, MacAddress src, int duration, Message body)
dst
- packet destination addresssrc
- packet source addressduration
- packet transmission durationbody
- packet data payloadMethod Detail |
---|
public MacAddress getDst()
getDst
in class MacMessage
public MacAddress getSrc()
public int getDuration()
getDuration
in class MacMessage
public short getSeq()
public short getFrag()
public Message getBody()
public int getSize()
public void getBytes(byte[] msg, int offset)
msg
- destination byte arrayoffset
- byte array starting offset
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |