| 
 | ||||||||||
| 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 | |
|---|---|
| static short | HEADER_SIZEPacket header size. | 
| static short | MAX_SEQPacket sequence number limit. | 
| 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
| 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 payload
public MacMessage.Data(MacAddress dst,
                       MacAddress src,
                       int duration,
                       Message body)
dst - packet destination addresssrc - packet source addressduration - packet transmission durationbody - packet data payload| Method Detail | 
|---|
public MacAddress getDst()
getDst in class MacMessagepublic MacAddress getSrc()
public int getDuration()
getDuration in class MacMessagepublic 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 | |||||||||