ProtocolType enum
The protocol type that is used for DNS-based service discovery.
Constructors
- ProtocolType({required String defaultDnsSdUriScheme, required String dnsSdProtocolLabel})
-
const
Values
- tcp → const ProtocolType
-
Indicates that services that use TCP-based protocols like HTTP for exposing their Thing Description shall be discovered.
const ProtocolType(defaultDnsSdUriScheme: "http", dnsSdProtocolLabel: "_tcp")
- udp → const ProtocolType
-
Indicates that services that use UDP-based protocols like CoAP for exposing their Thing Description shall be discovered.
const ProtocolType(defaultDnsSdUriScheme: "coap", dnsSdProtocolLabel: "_udp")
Properties
- defaultDnsSdUriScheme → String
-
The default URI scheme that is used for this protocol.
final
- dnsSdProtocolLabel → String
-
The subdomain for this protocol variant.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ProtocolType> - A constant List of the values in this enum, in order of their declaration.