Class PIMAddrUnicast


  • public class PIMAddrUnicast
    extends java.lang.Object
    • Field Detail

      • ENC_UNICAST_IPV4_BYTE_LENGTH

        public static final int ENC_UNICAST_IPV4_BYTE_LENGTH
        See Also:
        Constant Field Values
      • ENC_UNICAST_IPV6_BYTE_LENGTH

        public static final int ENC_UNICAST_IPV6_BYTE_LENGTH
        See Also:
        Constant Field Values
    • Constructor Detail

      • PIMAddrUnicast

        public PIMAddrUnicast()
        PIM Encoded Source Address.
      • PIMAddrUnicast

        public PIMAddrUnicast​(java.lang.String addr)
        PIM Encoded Source Address.
        Parameters:
        addr - IPv4 or IPv6
    • Method Detail

      • setAddr

        public void setAddr​(IpAddress addr)
        PIM Encoded Source Address.
        Parameters:
        addr - IPv4 or IPv6
      • getAddr

        public IpAddress getAddr()
        Get the address of this encoded address.
        Returns:
        source address
      • getFamily

        public int getFamily()
        Get the IP family of this address: 4 or 6.
        Returns:
        the IP address family
      • getByteSize

        public int getByteSize()
        The size in bytes of a serialized address.
        Returns:
        the number of bytes when serialized
      • serialize

        public byte[] serialize()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object