public class PIMAddrUnicast
extends java.lang.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(java.lang.String addr)
PIM Encoded Source Address.
|
Modifier and Type | Method and Description |
---|---|
PIMAddrUnicast |
deserialize(java.nio.ByteBuffer bb) |
boolean |
equals(java.lang.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(java.lang.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(java.nio.ByteBuffer bb) throws DeserializationException
DeserializationException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object