SocketOutputStream
class in package klyn.net

    public class SocketOutputStream implements OutputStream:

SocketOutputStream
All Implemented Interfaces: OutputStream

Binary output stream wrapper for `Socket`.

    import klyn.net

    socket = Socket("example.com", 80)
    try stream = socket.getOutputStream():
    stream.write("ping")

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | close `close() as Void throws IOException:` | Performs a network operation.
public | write `write(value as String) as Void throws IOException:` | Writes text to the socket.
public | writeBytes `writeBytes(value as Array<Byte>) as Void throws IOException:` | Writes raw bytes to the socket.

Methods inherited from OutputStream: write, writeBytes
Methods inherited from AutoClosable: close