SourceForge Jpcap

net.sourceforge.jpcap.net
Interface IPv4.IGMP

All Known Implementing Classes:
IGMPPacket
Enclosing interface:
IPv4

public static interface IPv4.IGMP

IGMP (Internet Group Management Protocol) API interface. This supports IGMPv2 and IGMPv3. Note that IGMPv1 is obsolete and is not supported. Note also that IGMP is only used by IPv6: IPv6 uses MLD, a sub-protocol of ICMPv6.

Since:
2.0.0
Version:
$Revision: 1.1 $
Author:
Esmond Pitt
See Also:
RFC2236 - IGMPv2, RFC3376 - IGMPv3

Method Summary
 InetAddress getGroupInetAddress()
          Fetch the IGMP group address.
 int getIGMPChecksum()
          Fetch the IGMP checksum.
 byte[] getIGMPData()
          Fetch the IGMP data as a byte array.
 byte[] getIGMPHeader()
          Fetch the IGMP header as a byte array.
 int getMaxResponseTime()
          Fetch the IGMP max response time.
 int getMessageType()
          Fetch the IGMP message type.
 void setGroupInetAddress(InetAddress address)
          Set the IGMP group address.
 void setMaxResponseTime(byte time)
          Set the IGMP max response time.
 void setMessageType(byte type)
          Set the IGMP message type, as per getMessageType().
 

Method Detail

getIGMPHeader

byte[] getIGMPHeader()
Fetch the IGMP header as a byte array.

Returns:
the IGMP header as a byte array.

getIGMPData

byte[] getIGMPData()
Fetch the IGMP data as a byte array.

Returns:
the IGMP data as a byte array.

getMessageType

int getMessageType()
Fetch the IGMP message type. Return value can be used with IGMPMessage.getDescription(int).

Returns:
a 1-byte value containing the message type.

setMessageType

void setMessageType(byte type)
Set the IGMP message type, as per getMessageType().

Parameters:
type - message type.
Since:
2.0.0.
See Also:
IGMPMessages

getMaxResponseTime

int getMaxResponseTime()
Fetch the IGMP max response time.

Returns:
the IGMP max response time, in tenths of a second.

setMaxResponseTime

void setMaxResponseTime(byte time)
Set the IGMP max response time.

Parameters:
time - the IGMP max response time, in tenths of a second.

getIGMPChecksum

int getIGMPChecksum()
Fetch the IGMP checksum.

Returns:
the IGMP checksum.
Since:
2.0.0.

getGroupInetAddress

InetAddress getGroupInetAddress()
Fetch the IGMP group address.

Returns:
the IGMP group address.
Since:
2.0.0

setGroupInetAddress

void setGroupInetAddress(InetAddress address)
Set the IGMP group address.

Parameters:
address - Group address.
Since:
2.0.0.

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.