TlsConnection class

Native TLS byte stream using the caller-selected trust context.

Properties

bytes → Stream<Uint8List>
no setter
hashCode → int
The hash code for this object.
no setterinherited
peerCertificate → X509Certificate?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedProtocol → String?
no setter

Methods

close() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(List<int> bytes) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

connect(String host, int port, {SecurityContext? context, CancellationToken? cancellationToken, Duration timeout = const Duration(seconds: 15), List<String>? supportedProtocols}) → Future<TlsConnection>