|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for application messages. It is implemented by the class OL_Message.
Field Summary | |
static short |
DELDUPS
|
static short |
E2EACK
|
static short |
H2HACK
|
static short |
INCAST
|
static short |
INORDER
|
static short |
NAMING
|
static short |
NOSERVICE
Service identifiers for enhanced service messages. |
static short |
SYNC
|
Method Summary | |
short |
getHopLimit()
Returns the maximum number of hops that this message may take in the network. |
byte[] |
getMessageID()
Deprecated. use getMessageIdentifier |
byte[] |
getMessageIdentifier()
|
byte[] |
getPayload()
Returns the payload byte array carried by this message. |
int |
getPayloadLength()
Returns the number of valid bytes in the payload. |
long |
getSequenceNumber()
Returns the sequence number carried by this message. |
short |
getServiceIdentifier()
Returns the service number carried by this message. |
short |
getServiceNumber()
Deprecated. use getServiceIdentifier |
hypercast.I_LogicalAddress |
getSourceAddress()
|
hypercast.I_LogicalAddress |
getSrcAddress()
Deprecated. use getSourceAddress(); |
byte[] |
getStreamID()
Deprecated. use getStreamIdentifier |
int |
getStreamIdentifier()
Returns the stream identifier carried by this message. |
byte |
getTrafficClass()
Returns the traffic class of the message |
void |
setHopLimit(short hopLimit)
Sets the hop limit for only this message. |
void |
setMsgIdentifier(int msgID)
Sets the message identifier in this message if the message is an enhanced service message. |
void |
setSequenceNumber(long sequenceNum)
Sets the sequence number in this message if the message is an stream-oriented message. |
void |
setServiceIdentifier(short serviceID)
Sets the service number in this message if the message is an enhanced service message. |
void |
setStreamIdentifier(int streamID)
Sets the stream identifier in this message if the message is an enhanced service message. |
void |
setTrafficClass(byte trafficclass)
Sets the traffic class of the message. |
Field Detail |
public static final short NOSERVICE
public static final short H2HACK
public static final short E2EACK
public static final short DELDUPS
public static final short SYNC
public static final short INCAST
public static final short INORDER
public static final short NAMING
Method Detail |
public short getHopLimit()
public void setHopLimit(short hopLimit)
I_OverlaySocket.setHopLimit
.
0 <= hop limit <= (2^16) - 1
The hopLimit is interpretted as an unsigned two byte quantity.
public byte[] getPayload()
getPayloadLength()
bytes of the payload are valid.
public int getPayloadLength()
public hypercast.I_LogicalAddress getSrcAddress()
public hypercast.I_LogicalAddress getSourceAddress()
public byte getTrafficClass()
public void setTrafficClass(byte trafficclass)
public byte[] getMessageID()
public short getServiceNumber()
public byte[] getStreamID()
public short getServiceIdentifier()
public void setServiceIdentifier(short serviceID)
public int getStreamIdentifier()
public void setStreamIdentifier(int streamID)
public long getSequenceNumber()
public void setSequenceNumber(long sequenceNum)
public byte[] getMessageIdentifier()
public void setMsgIdentifier(int msgID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |