ConnectionState enum
Describes the different stages of a DtlsConnection's lifecycle.
Values
- uninitialized → const ConnectionState
-
The connection has not been initialized yet.
const ConnectionState(canBeClosed: true) - handshake → const ConnectionState
-
The DTLS handshake is currently being performed.
const ConnectionState(canBeClosed: true) - connected → const ConnectionState
-
The handshake was successful, the DtlsConnection has been established.
const ConnectionState(canBeClosed: true) - requiresClosing → const ConnectionState
-
An error occurred, the connection needs to be closed as soon as possible.
const ConnectionState(canBeClosed: true) - closing → const ConnectionState
-
The DtlsConnection is in the process of being shut down.
Before the state closed is reached, the connection will perform a clean up of allocated resources and remove itself from the client or server it is associated with.
const ConnectionState(canBeClosed: false) - closed → const ConnectionState
-
The DtlsConnection has been shut down.
This can either be due to an orderly shutdown or due to an error during the handshake process.
const ConnectionState(canBeClosed: false)
Properties
- canBeClosed → bool
-
Indicates if a closing procedure can be triggered from this
ConnectionState.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ConnectionState> - A constant List of the values in this enum, in order of their declaration.