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(ByteBuffer bb)
Deserialize the IGMP Membership report packet. 
 | 
boolean | 
equals(Object obj)  | 
byte | 
getRecordType()
Gets the IGMP record type. 
 | 
int | 
hashCode()  | 
byte[] | 
serialize(ByteBuffer bb)
Serialize this Membership Report. 
 | 
void | 
setRecordType(byte type)
Sets the IGMP record type. 
 | 
addSource, getAuxInfo, getGaddr, getSources, toStringpublic 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(ByteBuffer bb)
public IGMPGroup deserialize(ByteBuffer bb) throws DeserializationException
deserialize in class IGMPGroupbb - the ByteBuffer wrapping the serialized message.  The position of the
           ByteBuffer should be pointing at the head of either message type.DeserializationException - if deserialization fails