MulticastSourceAddress

Ecng.Net

Represents the configuration for a UDP multicast source address.

継承元: NotifiableObject

実装: IPersistable

プロパティ

GroupAddress
public IPAddress GroupAddress { get; set; }
value = multicastSourceAddress.GroupAddress
multicastSourceAddress.GroupAddress = value

Gets or sets the UDP multicast group address.

InterfaceAddress
public IPAddress InterfaceAddress { get; set; }
value = multicastSourceAddress.InterfaceAddress
multicastSourceAddress.InterfaceAddress = value

Gets or sets the local network interface address on which to join the multicast group. When unset, the OS default interface is used — on a multi-homed host that can make the group be received on several interfaces (duplicate delivery). Set this to bind the membership to a single NIC.

IsEnabled
public bool IsEnabled { get; set; }
value = multicastSourceAddress.IsEnabled
multicastSourceAddress.IsEnabled = value

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

Port
public int Port { get; set; }
value = multicastSourceAddress.Port
multicastSourceAddress.Port = value

Gets or sets the local port.

SourceAddress
public IPAddress SourceAddress { get; set; }
value = multicastSourceAddress.SourceAddress
multicastSourceAddress.SourceAddress = value

Gets or sets the UDP multicast source address.

メソッド

Equals
public override bool Equals(object obj)
result = multicastSourceAddress.Equals(obj)

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

obj
The object to compare with the current instance.

戻り値: true if the specified object is equal to the current instance; otherwise, false.

GetHashCode
public override int GetHashCode()
result = multicastSourceAddress.GetHashCode()

Returns a hash code for the current multicast source address.

戻り値: A hash code for the current object.

Load
public void Load(SettingsStorage storage)
multicastSourceAddress.Load(storage)

Loads settings from the specified SettingsStorage.

storage
The settings storage to load from.
Save
public void Save(SettingsStorage storage)
multicastSourceAddress.Save(storage)

Saves settings to the specified SettingsStorage.

storage
The settings storage to save to.
ToString
public override string ToString()
result = multicastSourceAddress.ToString()

Returns a string that represents the current multicast source address.

戻り値: A string containing the group address, source address, and port.