blob: 759cd48f31448286f5cb3bba1cb2bf5424fb82ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
//
// System.Net.Sockets.MulticastOption.cs
//
// Author:
// Andrew Sutton
//
// (C) Andrew Sutton
//
using System;
using System.Net;
namespace System.Net.Sockets
{
// <remarks>
// Encapsulates a multicast option
// </remarks>
public class MulticastOption
{
// Don't change the names of these fields without also
// changing socket-io.c in the runtime
private IPAddress group;
protected IPAddress local;
public MulticastOption (IPAddress grp)
{
group = grp;
}
public MulticastOption (IPAddress grp, IPAddress addr)
{
group = grp;
local = addr;
}
public IPAddress Group
{
get { return group; }
set { group = value; }
}
public IPAddress LocalAddress
{
get { return local; }
set { local = value; }
}
}
}
|