SSLSocketWriter
class in package klyn.net.ssl

    public class SSLSocketWriter extends AbstractTextWriter:

AbstractTextWriter
└ SSLSocketWriter

Text writer over one TLS socket connection.

    import klyn.net.ssl

    socket = SSLSocket("example.com", 443)
    try writer = socket.writer:
    writer.write("ping")

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SSLSocketWriter `SSLSocketWriter(socket as SSLSocket):` | Creates a text writer bound to a connected TLS socket.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | close `close() as Void throws IOException:` | Closes the underlying TLS socket.
public override | write `write(readonly value as String) as Void throws IOException:` | Writes text to the TLS socket.

Inherited Methods
method Inherited Methods from AbstractTextWriter: close, write, writeChar, writeLine, writeLines
method Inherited Methods from TextWriter: write, writeChar, writeLine, writeLines
method Inherited Methods from AutoClosable: close