|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.io.StatusMessage
A datagram packet that can be used to report information about a node
Field Summary | |
static byte |
SMF_REPLY
Flags for the message |
static byte |
SMM_NONE
Method IDs for a packet (i.e. |
static byte |
SMM_QUERY
|
Constructor Summary | |
StatusMessage()
|
Method Summary | |
static int |
decodeInt(byte[] data,
int offset)
decode an int in the byte array at the given offset |
static short |
decodeShort(byte[] data,
int offset)
decode a short in the byte array at the given offset |
static void |
encodeInt(byte[] data,
int offset,
int i)
Encode an int in the byte array at the given offset |
static void |
encodeShort(byte[] data,
int offset,
short s)
Encode a short in the byte array at the given offset |
java.net.InetAddress |
getAddress()
Get the peer address |
java.net.DatagramPacket |
getDatagramPacket()
Get the real datagram packet |
byte |
getFlags()
Get the flags for this message |
byte |
getMethodID()
Get the method for this message |
int |
getPort()
Get the peer port |
byte[] |
getValue()
Get the byte array for the packet |
int |
getValueOffset()
Get the offset into the value array where the value actually starts |
int |
getValueSize()
Get the size of the message payload |
void |
setAddress(java.net.InetAddress ia)
Set the peer address |
void |
setFlags(byte flags)
Set the flags for this message |
void |
setMethodID(byte method)
Set the method for this message |
void |
setPort(int port)
Set the peer port |
void |
setValueSize(int size)
Set the size of the message payload |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final byte SMM_NONE
public static final byte SMM_QUERY
public static final byte SMF_REPLY
Constructor Detail |
public StatusMessage()
Method Detail |
public static void encodeShort(byte[] data, int offset, short s)
public static void encodeInt(byte[] data, int offset, int i)
public static short decodeShort(byte[] data, int offset)
public static int decodeInt(byte[] data, int offset)
public java.net.DatagramPacket getDatagramPacket()
public void setAddress(java.net.InetAddress ia)
public java.net.InetAddress getAddress()
public void setPort(int port)
public int getPort()
public void setMethodID(byte method)
public byte getMethodID()
public void setFlags(byte flags)
public byte getFlags()
public void setValueSize(int size)
public int getValueSize()
public byte[] getValue()
public int getValueOffset()
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |