public class MulticastOption
|
groupIP
is an IPAddress instance that has been set to the IP multicast group address in the range 224.0.0.0 to 239.255.255.255.
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp );
sock.SetSocketOption(SocketOptionLevel.IP,
SocketOptionName.AddMembership,
new MulticastOption( groupIP ));
| ctor #1 | Overloaded:.ctor(IPAddress group) Initializes a new version of the MulticastOption class for the specified IP multicast group. |
| ctor #2 | Overloaded:.ctor(IPAddress group, IPAddress mcint) Initializes a new instance of the MulticastOption class with the specified IP multicast group address and local interface address. |
| Group | Read-write Gets or sets the IP address of a multicast group. |
| LocalAddress | Read-write Gets or sets the local address associated with a multicast group. |
| Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
| GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
| GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
| ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
| Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
| MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public MulticastOption( |
group
| Exception Type | Condition |
|---|---|
| ArgumentNullException | group is null. |
group
mcint
| Exception Type | Condition |
|---|---|
| ArgumentNullException | group is null -or- mcint is null. |
public IPAddress Group {get; set;}
|
public IPAddress LocalAddress {get; set;}
|
~MulticastOption(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |