ReadonlyclosedResolves when the socket is fully closed.
ReadonlyreaderBuffered reader over the socket's readable side.
ReadonlywriterLine-capable writer over the socket's writable side.
Closes the socket.
Upgrades a 'starttls' connection to TLS.
Returns a brand-new CoreSocket; the original is dead afterwards and its
reader/writer must not be used. Re-acquire them from the returned socket. Only valid
when this socket was opened with tls: 'starttls'.
Optionalopts: TlsUpgradeOptions
TLS options such as the expected server hostname.
The upgraded socket.
A connected transport with buffered framed I/O.
Obtain one from connect. It is an
AsyncDisposable, so it can be scoped withawait using.Since
1.0.0