Class IGMPQuery

    • Constructor Summary

      Constructors 
      Constructor Description
      IGMPQuery()
      Create IGMP Query message.
      IGMPQuery​(IpAddress gaddr, int auxInfo)
      Create IGMP Query message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IGMPGroup deserialize​(java.nio.ByteBuffer bb)
      Deserialize the IGMP Query group structure.
      boolean equals​(java.lang.Object obj)  
      byte getQrv()
      Get the Querier Robustness Variable.
      byte getResv()
      Get the reserved field.
      int hashCode()  
      boolean isSbit()
      Is the S flag set? Telling adjacent routers to suppress normal timer updates.
      byte[] serialize​(java.nio.ByteBuffer bb)
      Serialize this IGMPQuery.
      void setQrv​(byte qrv)
      Set the Querier Robustness Variable.
      void setResv​(byte resv)
      Set the reserved field.
      void setSbit​(boolean sbit)
      Set the S flag.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IGMPQuery

        public IGMPQuery​(IpAddress gaddr,
                         int auxInfo)
        Create IGMP Query message.
        Parameters:
        gaddr - initiaze with a group address.
        auxInfo - auxillary info.
      • IGMPQuery

        public IGMPQuery()
        Create IGMP Query message.
    • Method Detail

      • isSbit

        public boolean isSbit()
        Is the S flag set? Telling adjacent routers to suppress normal timer updates.
        Returns:
        true if the flag is set, false otherwise
      • setSbit

        public void setSbit​(boolean sbit)
        Set the S flag. Default is false.
        Parameters:
        sbit - true or false
      • getQrv

        public byte getQrv()
        Get the Querier Robustness Variable.
        Returns:
        querier robustness value
      • setQrv

        public void setQrv​(byte qrv)
        Set the Querier Robustness Variable. Default is 2.
        Parameters:
        qrv - new querier robustness value
      • getResv

        public byte getResv()
        Get the reserved field. Should be zero, but ignored regardless of it's value.
        Returns:
        the reserved field.
      • setResv

        public void setResv​(byte resv)
        Set the reserved field. Should be 0 and ignored by receivers.
        Parameters:
        resv - the reserved field.
      • serialize

        public byte[] serialize​(java.nio.ByteBuffer bb)
        Serialize this IGMPQuery.
        Specified by:
        serialize in class IGMPGroup
        Parameters:
        bb - the ByteBuffer to write into, positioned at the next spot to be written to.
        Returns:
        the serialized message
      • equals

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

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