MulticastAddress enum
Defines well-known multicast addresses from RFC 7252 and RFC 9176.
This enum's toString method returns the address field. In the case of IPv6 addresses, the address string gets wrapped in square brackets. This makes it easier to use the enum values in URI strings, such as the following:
final uri = Uri.parse('coap://${MulticastAddress.allNodesLinkLocalIPV6}');
Constructors
- MulticastAddress(String address)
-
Constructor.
const
Values
- allRoutersIPV4 → const MulticastAddress
-
const MulticastAddress('224.0.0.2')
- allSystemsIPV4 → const MulticastAddress
-
const MulticastAddress('224.0.0.1')
- allCOAPNodesIPV4 → const MulticastAddress
-
const MulticastAddress('224.0.1.187')
- allCoreRDsIPv4 → const MulticastAddress
-
"All CoRE Resource Directories" IPv4 multicast address.
Specified in RFC 9176, section 9.5.
const MulticastAddress('224.0.1.190')
- allRoutersIPV6 → const MulticastAddress
-
const MulticastAddress('FF01::2')
- allNodesIPV6 → const MulticastAddress
-
const MulticastAddress('FF01::1')
- allRoutersLinkLocalIPV6 → const MulticastAddress
-
const MulticastAddress('FF02::2')
- allNodesLinkLocalIPV6 → const MulticastAddress
-
const MulticastAddress('FF02::1')
- allRoutersSiteLocalIPV6 → const MulticastAddress
-
const MulticastAddress('FF05::2')
- allCOAPNodesIPV6 → const MulticastAddress
-
const MulticastAddress('FF01::FD')
- allCOAPNodesLinkLocalIPV6 → const MulticastAddress
-
const MulticastAddress('FF02::FD')
- allCOAPNodesSiteLocalIPV6 → const MulticastAddress
-
const MulticastAddress('FF05::FD')
- allCoreRDsIPv6 → const MulticastAddress
-
"All CoRE Resource Directories" IPv6 multicast address.
Specified in RFC 9176, section 9.5.
const MulticastAddress('FF01::FE')
- allCoreRDsLinkLocalIPv6 → const MulticastAddress
-
"All CoRE Resource Directories" IPv6 link-local multicast address.
Specified in RFC 9176, section 9.5.
const MulticastAddress('FF02::FE')
- allCoreRDsSiteLocalIPv6 → const MulticastAddress
-
"All CoRE Resource Directories" IPv6 site-local multicast address.
Specified in RFC 9176, section 9.5.
const MulticastAddress('FF05::FE')
Properties
- address → String
-
A string representation of this CoAP MulticastAddress.
final
- addressType → InternetAddressType
-
The InternetAddressType of this MulticastAddress.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- internetAddress → InternetAddress
-
Generates an InternetAddress object representing the address.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
MulticastAddress> - A constant List of the values in this enum, in order of their declaration.