Skip to main content

MulticastOption Class

NuGet: GHIElectronics.TinyCLR.Networking
Assembly: GHIElectronics.TinyCLR.Networking
Namespace: System.Net.Sockets

Contains IP address values for setting IP multicast options.

public class MulticastOption

Constructors

MulticastOption(IPAddress group, IPAddress mcint)

public MulticastOption(IPAddress group, IPAddress mcint)

Initializes a new instance for the specified multicast group and local address.

MulticastOption(IPAddress group)

public MulticastOption(IPAddress group)

Initializes a new instance for the specified multicast group using the default local address.

Properties

Group

public IPAddress Group { get; set; }

The IP address of the multicast group.

LocalAddress

public IPAddress LocalAddress { get; set; }

The local address associated with the multicast group.

InterfaceIndex

public int InterfaceIndex { get; set; }

The index of the local network interface to use for the multicast group.

Methods

ToBytes()

public byte[] ToBytes()

Returns the multicast group and local addresses as a byte array.

Returns byte[]