public class IGMPQuery extends IGMPGroup
Constructor and Description |
---|
IGMPQuery()
Create IGMP Query message.
|
IGMPQuery(IpAddress gaddr,
int auxInfo)
Create IGMP Query message.
|
Modifier and Type | Method and 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.
|
addSource, getAuxInfo, getGaddr, getSources, toString
public IGMPQuery(IpAddress gaddr, int auxInfo)
gaddr
- initiaze with a group address.auxInfo
- auxillary info.public IGMPQuery()
public boolean isSbit()
public void setSbit(boolean sbit)
sbit
- true or falsepublic byte getQrv()
public void setQrv(byte qrv)
qrv
- new querier robustness valuepublic byte getResv()
public void setResv(byte resv)
resv
- the reserved field.public byte[] serialize(java.nio.ByteBuffer bb)
public IGMPGroup deserialize(java.nio.ByteBuffer bb) throws DeserializationException
deserialize
in class IGMPGroup
bb
- ByteBuffer pointing at the IGMP Query group addressDeserializationException
- on serializer errorpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object