Protocols class
Registry of supported multiaddr protocols
Constructors
Properties
- hashCode → int
-
The hash code for this object.
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
Static Methods
-
byCode(
int code) → Protocol? - Returns the protocol for the given code, or null if no protocol has it
-
byName(
String name) → Protocol? - Returns the protocol for the given name
-
isSupported(
String name) → bool - Returns true if the protocol is supported
-
register(
Protocol protocol) → void -
Adds
protocolto the registry, so that MultiAddr can parse, print and encode addresses that use it.
Constants
- ble → const Protocol
- certhash → const Protocol
- circuit → const Protocol
- dns → const Protocol
- dns4 → const Protocol
- dns6 → const Protocol
- dnsaddr → const Protocol
- ip4 → const Protocol
- ip6 → const Protocol
- p2p → const Protocol
- quicV1 → const Protocol
- sni → const Protocol
- tcp → const Protocol
- tls → const Protocol
- udp → const Protocol
- udx → const Protocol
- unix → const Protocol
- webrtc → const Protocol
- webrtcDirect → const Protocol
- webtransport → const Protocol
- ws → const Protocol
- wss → const Protocol