Table of Contents

Class MulticastSourceAddress

Namespace
Ecng.Net
Assembly
Ecng.Net.dll

Represents the configuration for a UDP multicast source address.

[TypeConverter(typeof(ExpandableObjectConverter))]
public class MulticastSourceAddress : NotifiableObject, IPersistable
Inheritance
MulticastSourceAddress
Implements
IPersistable
Extension Methods

Constructors

MulticastSourceAddress()

public MulticastSourceAddress()

Properties

GroupAddress

Gets or sets the UDP multicast group address.

[Display(Name = "Group Address", Description = "UDP multicast group address.", Order = 0)]
public IPAddress GroupAddress { get; set; }

Property Value

IPAddress

IsEnabled

Gets or sets a value indicating whether the configuration is enabled.

[Display(Name = "Enabled", Description = "Is configuration enabled.", Order = 3)]
public bool IsEnabled { get; set; }

Property Value

bool

Port

Gets or sets the local port.

[Display(Name = "Port", Description = "Local port.", Order = 2)]
public int Port { get; set; }

Property Value

int

SourceAddress

Gets or sets the UDP multicast source address.

[Display(Name = "Source Address", Description = "UDP multicast source address.", Order = 1)]
public IPAddress SourceAddress { get; set; }

Property Value

IPAddress

Methods

Equals(object)

Determines whether the specified object is equal to the current multicast source address.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if the specified object is equal to the current instance; otherwise, false.

GetHashCode()

Returns a hash code for the current multicast source address.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Load(SettingsStorage)

Loads settings from the specified SettingsStorage.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

The settings storage to load from.

Save(SettingsStorage)

Saves settings to the specified SettingsStorage.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

The settings storage to save to.

ToString()

Returns a string that represents the current multicast source address.

public override string ToString()

Returns

string

A string containing the group address, source address, and port.