|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object network.Packet
The Packet class from which all others types of packets inherit.
Field Summary | |
static int |
IP
Packets of this type contain an IP address payload. |
static int |
IP_REQUEST
Packets of this type request IPPackets from neighbor. |
static int |
NUM_TYPES
There are NUM_TYPES number of packet types. |
static int |
XML
Packets of this type contain an XML payload. |
Constructor Summary | |
Packet(int type)
Creates a new Packet of type t. |
Method Summary | |
int |
getType()
Return the packet type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int XML
public static final int IP
public static final int IP_REQUEST
public static final int NUM_TYPES
Constructor Detail |
public Packet(int type)
type
- The Packet type intended for this Packet.Method Detail |
public int getType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |