public class PIMAddrUnicast extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ENC_UNICAST_IPV4_BYTE_LENGTH |
static int |
ENC_UNICAST_IPV6_BYTE_LENGTH |
Constructor and Description |
---|
PIMAddrUnicast()
PIM Encoded Source Address.
|
PIMAddrUnicast(String addr)
PIM Encoded Source Address.
|
Modifier and Type | Method and Description |
---|---|
PIMAddrUnicast |
deserialize(ByteBuffer bb) |
boolean |
equals(Object obj) |
IpAddress |
getAddr()
Get the address of this encoded address.
|
int |
getByteSize()
The size in bytes of a serialized address.
|
int |
getFamily()
Get the IP family of this address: 4 or 6.
|
int |
hashCode() |
byte[] |
serialize() |
void |
setAddr(IpAddress addr)
PIM Encoded Source Address.
|
public static final int ENC_UNICAST_IPV4_BYTE_LENGTH
public static final int ENC_UNICAST_IPV6_BYTE_LENGTH
public PIMAddrUnicast()
public PIMAddrUnicast(String addr)
addr
- IPv4 or IPv6public void setAddr(IpAddress addr)
addr
- IPv4 or IPv6public IpAddress getAddr()
public int getFamily()
public int getByteSize()
public byte[] serialize()
public PIMAddrUnicast deserialize(ByteBuffer bb) throws DeserializationException
DeserializationException