public abstract class RSVPMessage extends Object implements RSVPElement
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bytes |
protected int |
flags |
protected int |
length |
protected int |
msgType |
protected int |
reserved |
protected int |
rsvpChecksum |
protected int |
sendTTL |
protected int |
vers |
| Constructor and Description |
|---|
RSVPMessage() |
RSVPMessage(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum() |
abstract void |
decode() |
void |
decodeHeader()
RSVP Common Header
0 1 2 3
+-------------+-------------+-------------+-------------+
| Vers | Flags| Msg Type | RSVP Checksum |
+-------------+-------------+-------------+-------------+
| Send_TTL | (Reserved) | RSVP Length |
+-------------+-------------+-------------+-------------+
|
abstract void |
encode()
Generic method to encode an RSVP element
|
abstract void |
encodeHeader() |
byte[] |
getBytes()
Generic method to get the byte array from an encoded RSVP element
|
int |
getFlags() |
int |
getLength()
Generic method to get length an encoded RSVP element byte array
|
static int |
getMsgLength(byte[] bytes) |
int |
getMsgType() |
static int |
getMsgType(byte[] bytes) |
int |
getReserved() |
int |
getRsvpChecksum() |
int |
getSendTTL() |
int |
getVers() |
void |
setBytes(byte[] bytes) |
void |
setFlags(int flags) |
void |
setLength(int length) |
void |
setMsgType(int msgType) |
void |
setReserved(int reserved) |
void |
setRsvpChecksum(int rsvpChecksum) |
void |
setSendTTL(int sendTTL) |
void |
setVers(int vers) |
protected int vers
protected int flags
protected int msgType
protected int rsvpChecksum
protected int sendTTL
protected int reserved
protected int length
protected byte[] bytes
public abstract void encodeHeader()
public abstract void encode()
throws RSVPProtocolViolationException
RSVPElementencode in interface RSVPElementRSVPProtocolViolationExceptionpublic void decodeHeader()
throws RSVPProtocolViolationException
RSVPProtocolViolationExceptionpublic abstract void decode()
throws RSVPProtocolViolationException
RSVPProtocolViolationExceptionpublic void calculateChecksum()
public int getVers()
public void setVers(int vers)
public int getFlags()
public void setFlags(int flags)
public int getMsgType()
public void setMsgType(int msgType)
public int getRsvpChecksum()
public void setRsvpChecksum(int rsvpChecksum)
public int getSendTTL()
public void setSendTTL(int sendTTL)
public int getReserved()
public void setReserved(int reserved)
public int getLength()
RSVPElementgetLength in interface RSVPElementpublic void setLength(int length)
public byte[] getBytes()
RSVPElementgetBytes in interface RSVPElementpublic void setBytes(byte[] bytes)
public static int getMsgType(byte[] bytes)
public static int getMsgLength(byte[] bytes)
Copyright © 2016. All rights reserved.