DtlsClientConnection class
DTLS client connection.
A single RawDatagramSocket can be used for multiple connections, by sending to different endpoints and processing the sender for each received Datagram. A DtlsClientConnection can only handle a single connection.
incoming and outgoing contain TLS-encrypted data that should be redirected to a RawDatagramSocket.
send and received contain plaintext data that should be passed to the application logic.
Wrapper for SSL
.
Constructors
- DtlsClientConnection({required DtlsClientContext context, String? hostname})
-
Create a DtlsClientConnection using a DtlsClientContext.
The
hostname
is used for Server Name Indication and to verify the certificate.
Properties
Methods
-
connect(
) → Future< void> -
free(
) → void - Free the object. Use after free triggers undefined behavior.
-
incoming(
Uint8List input) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
Uint8List data) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited