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.

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