MulticastSourceAddress
Represents the configuration for a UDP multicast source address.
Наследует: NotifiableObject
Реализует: IPersistable
Свойства
public IPAddress GroupAddress { get; set; }
value = multicastSourceAddress.GroupAddress
multicastSourceAddress.GroupAddress = value
Gets or sets the UDP multicast group address.
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.
public bool IsEnabled { get; set; }
value = multicastSourceAddress.IsEnabled
multicastSourceAddress.IsEnabled = value
Gets or sets a value indicating whether the configuration is enabled.
public int Port { get; set; }
value = multicastSourceAddress.Port
multicastSourceAddress.Port = value
Gets or sets the local port.
public IPAddress SourceAddress { get; set; }
value = multicastSourceAddress.SourceAddress
multicastSourceAddress.SourceAddress = value
Gets or sets the UDP multicast source address.
Методы
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.
public override int GetHashCode()
result = multicastSourceAddress.GetHashCode()
Returns a hash code for the current multicast source address.
Возвращает: A hash code for the current object.
public void Load(SettingsStorage storage)
multicastSourceAddress.Load(storage)
Loads settings from the specified SettingsStorage.
- storage
- The settings storage to load from.
public void Save(SettingsStorage storage)
multicastSourceAddress.Save(storage)
Saves settings to the specified SettingsStorage.
- storage
- The settings storage to save to.
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.