Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IPv6MulticastOption.cs
Go to the documentation of this file.
1namespace System.Net.Sockets;
2
4{
6
7 private long _interface;
8
10 {
11 get
12 {
13 return _group;
14 }
15 set
16 {
17 _group = value ?? throw new ArgumentNullException("value");
18 }
19 }
20
21 public long InterfaceIndex
22 {
23 get
24 {
25 return _interface;
26 }
27 set
28 {
29 if (value < 0 || value > uint.MaxValue)
30 {
31 throw new ArgumentOutOfRangeException("value");
32 }
34 }
35 }
36
37 public IPv6MulticastOption(IPAddress group, long ifindex)
38 {
39 if (group == null)
40 {
41 throw new ArgumentNullException("group");
42 }
43 if (ifindex < 0 || ifindex > uint.MaxValue)
44 {
45 throw new ArgumentOutOfRangeException("ifindex");
46 }
47 _group = group;
48 InterfaceIndex = ifindex;
49 }
50
52 {
53 if (group == null)
54 {
55 throw new ArgumentNullException("group");
56 }
57 _group = group;
59 }
60}
IPv6MulticastOption(IPAddress group, long ifindex)