93 lines
3.3 KiB
C#
93 lines
3.3 KiB
C#
using System;
|
|
|
|
namespace System.Net.Sockets
|
|
{
|
|
/// <summary>Contains option values for joining an IPv6 multicast group.</summary>
|
|
// Token: 0x020001DB RID: 475
|
|
public class IPv6MulticastOption
|
|
{
|
|
/// <summary>Initializes a new version of the <see cref="T:System.Net.Sockets.IPv6MulticastOption" /> class for the specified IP multicast group.</summary>
|
|
/// <param name="group">The <see cref="T:System.Net.IPAddress" /> of the multicast group. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="group" /> is null. </exception>
|
|
// Token: 0x06000F5A RID: 3930 RVA: 0x0002A308 File Offset: 0x00028508
|
|
public IPv6MulticastOption(IPAddress group)
|
|
: this(group, 0L)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.IPv6MulticastOption" /> class with the specified IP multicast group and the local interface address.</summary>
|
|
/// <param name="group">The group <see cref="T:System.Net.IPAddress" />. </param>
|
|
/// <param name="ifindex">The local interface address. </param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="ifindex" /> is less than 0.-or- <paramref name="ifindex" /> is greater than 0x00000000FFFFFFFF. </exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="group" /> is null. </exception>
|
|
// 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;
|
|
}
|
|
|
|
/// <summary>Gets or sets the IP address of a multicast group.</summary>
|
|
/// <returns>An <see cref="T:System.Net.IPAddress" /> that contains the Internet address of a multicast group.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="group" /> is null. </exception>
|
|
// 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;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the interface index that is associated with a multicast group.</summary>
|
|
/// <returns>A <see cref="T:System.UInt64" /> value that specifies the address of the interface.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The value that is specified for a set operation is less than 0 or greater than 0x00000000FFFFFFFF. </exception>
|
|
// 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;
|
|
}
|
|
}
|