RpcSecureSocket class abstract final

A client TLS connect whose ConnectionTask.cancel closes the socket in either stage, TCP or the TLS handshake.

SecureSocket.startConnect cancels only the TCP connect: once the handshake owns the socket nothing can close it, so a peer that accepts TCP and never answers TLS keeps it open for as long as it likes. An HttpClient whose connectionTimeout fires, or that is closed with force, cancels the task and leaves that socket behind, one per attempt.

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

startConnect(Object host, int port, {SecurityContext? context, bool onBadCertificate(X509Certificate certificate)?, void keyLog(String line)?, List<String>? supportedProtocols}) → Future<ConnectionTask<SecureSocket>>
Connects to host:port over TLS, as SecureSocket.startConnect does.