public class IGMPMembership extends IGMPGroup
Modifier and Type | Field and Description |
---|---|
static byte |
ALLOW_NEW_SOURCES |
protected byte[] |
auxData |
protected byte |
auxDataLength |
static byte |
BLOCK_OLD_SOURCES |
static byte |
CHANGE_TO_EXCLUDE_MODE |
static byte |
CHANGE_TO_INCLUDE_MODE |
static byte |
MODE_IS_EXCLUDE |
static byte |
MODE_IS_INCLUDE |
protected byte |
recordType |
Constructor and Description |
---|
IGMPMembership()
Default constructor.
|
IGMPMembership(Ip4Address gaddr)
Constructor initialized with a multicast group address.
|
Modifier and Type | Method and Description |
---|---|
IGMPGroup |
deserialize(java.nio.ByteBuffer bb)
Deserialize the IGMP Membership report packet.
|
boolean |
equals(java.lang.Object obj) |
byte |
getRecordType()
Gets the IGMP record type.
|
int |
hashCode() |
byte[] |
serialize(java.nio.ByteBuffer bb)
Serialize this Membership Report.
|
void |
setRecordType(byte type)
Sets the IGMP record type.
|
addSource, getAuxInfo, getGaddr, getSources, toString
public static final byte MODE_IS_INCLUDE
public static final byte MODE_IS_EXCLUDE
public static final byte CHANGE_TO_INCLUDE_MODE
public static final byte CHANGE_TO_EXCLUDE_MODE
public static final byte ALLOW_NEW_SOURCES
public static final byte BLOCK_OLD_SOURCES
protected byte recordType
protected byte auxDataLength
protected byte[] auxData
public IGMPMembership(Ip4Address gaddr)
gaddr
- A multicast group address.public IGMPMembership()
public byte getRecordType()
public void setRecordType(byte type)
type
- A multicast record type, like MODE_IS_INCLUDE or MODE_IS_EXCLUDE.public byte[] serialize(java.nio.ByteBuffer bb)
public IGMPGroup deserialize(java.nio.ByteBuffer bb) throws DeserializationException
deserialize
in class IGMPGroup
bb
- the ByteBuffer wrapping the serialized message. The position of the
ByteBuffer should be pointing at the head of either message type.DeserializationException
- if deserialization failspublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object