SecureSocketOpenSslAsync class
A dart SecureSocket with dart io.Socket and OpenSSL FFI
Constructors
- SecureSocketOpenSslAsync.clientFromSocket(Socket socket, {bool eagerHandshake = true, Logger? logger, String? cryptoPath, String? sslPath})
-
factory
- SecureSocketOpenSslAsync.clientWithCallbacks({required CiphertextWriterAsync writer, required CiphertextReaderAsync reader, bool eagerHandshake = true, Logger? logger, String? cryptoPath, String? sslPath})
-
factory
- SecureSocketOpenSslAsync.serverFromSocket(Socket socket, {required String certFile, required String keyFile, bool eagerHandshake = true, Logger? logger, String? cryptoPath, String? sslPath})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isHandshakeComplete → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket → Socket?
-
no setter
Methods
-
close(
) → Future< void> -
ensureHandshakeCompleted(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recv(
int bufferSize) → Future< Uint8List> -
recvExact(
int bufferSize) → Future< Uint8List> -
Receives exactly
bufferSizebytes unless EOF occurs. Throws OpenSslTlsException if EOF is reached beforebufferSize. -
send(
Uint8List data) → Future< int> -
shutdown(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited