public class SessionIPv4 extends Session
Modifier and Type | Field and Description |
---|---|
protected Inet4Address |
destAddress |
protected int |
destPort |
protected int |
flags |
protected int |
protocolId |
bytes, classNum, cType, length
Constructor and Description |
---|
SessionIPv4() |
SessionIPv4(Inet4Address destAddress,
int protocolId,
int flags,
int destPort) |
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] bytes,
int offset) |
void |
encode()
Generic method to encode an RSVP element
|
void |
encodeHeader()
Common RSVP Objects Header encoding method
|
Inet4Address |
getDestAddress() |
int |
getDestPort() |
int |
getFlags() |
int |
getProtocolId() |
void |
setDestAddress(Inet4Address destAddress) |
void |
setDestPort(int destPort) |
void |
setFlags(int flags) |
void |
setProtocolId(int protocolId) |
decodeHeader, getBytes, getClassNum, getClassNum, getcType, getcType, getLength, getLength, setBytes, setClassNum, setcType, setLength
protected Inet4Address destAddress
protected int protocolId
protected int flags
protected int destPort
public SessionIPv4()
public SessionIPv4(Inet4Address destAddress, int protocolId, int flags, int destPort)
destAddress
- protocolId
- flags
- destPort
- public void encodeHeader()
RSVPObject
encodeHeader
in class RSVPObject
public void encode()
RSVPElement
encode
in interface RSVPElement
encode
in class RSVPObject
public void decode(byte[] bytes, int offset)
decode
in class RSVPObject
public Inet4Address getDestAddress()
public void setDestAddress(Inet4Address destAddress)
public int getProtocolId()
public void setProtocolId(int protocolId)
public int getFlags()
public void setFlags(int flags)
public int getDestPort()
public void setDestPort(int destPort)
Copyright © 2016. All rights reserved.