using System;
namespace System.Net.Sockets
{
/// Contains option values for joining an IPv6 multicast group.
// Token: 0x020001DB RID: 475
public class IPv6MulticastOption
{
/// Initializes a new version of the class for the specified IP multicast group.
/// The of the multicast group.
///
/// is null.
// Token: 0x06000F5A RID: 3930 RVA: 0x0002A308 File Offset: 0x00028508
public IPv6MulticastOption(IPAddress group)
: this(group, 0L)
{
}
/// Initializes a new instance of the class with the specified IP multicast group and the local interface address.
/// The group .
/// The local interface address.
///
/// is less than 0.-or- is greater than 0x00000000FFFFFFFF.
///
/// is null.
// Token: 0x06000F5B RID: 3931 RVA: 0x0002A314 File Offset: 0x00028514
public IPv6MulticastOption(IPAddress group, long ifindex)
{
if (group == null)
{
throw new ArgumentNullException("group");
}
if (ifindex < 0L || ifindex > (long)((ulong)(-1)))
{
throw new ArgumentOutOfRangeException("ifindex");
}
this.group = group;
this.ifIndex = ifindex;
}
/// Gets or sets the IP address of a multicast group.
/// An that contains the Internet address of a multicast group.
///
/// is null.
// Token: 0x17000540 RID: 1344
// (get) Token: 0x06000F5C RID: 3932 RVA: 0x0002A364 File Offset: 0x00028564
// (set) Token: 0x06000F5D RID: 3933 RVA: 0x0002A36C File Offset: 0x0002856C
public IPAddress Group
{
get
{
return this.group;
}
set
{
if (value == null)
{
throw new ArgumentNullException("value");
}
this.group = value;
}
}
/// Gets or sets the interface index that is associated with a multicast group.
/// A value that specifies the address of the interface.
/// The value that is specified for a set operation is less than 0 or greater than 0x00000000FFFFFFFF.
// Token: 0x17000541 RID: 1345
// (get) Token: 0x06000F5E RID: 3934 RVA: 0x0002A388 File Offset: 0x00028588
// (set) Token: 0x06000F5F RID: 3935 RVA: 0x0002A390 File Offset: 0x00028590
public long InterfaceIndex
{
get
{
return this.ifIndex;
}
set
{
if (value < 0L || value > (long)((ulong)(-1)))
{
throw new ArgumentOutOfRangeException("value");
}
this.ifIndex = value;
}
}
// Token: 0x04000DF6 RID: 3574
private IPAddress group;
// Token: 0x04000DF7 RID: 3575
private long ifIndex;
}
}