public class SocketOutputStream implements OutputStream:
import klyn.net
socket = Socket("example.com", 80)
try stream = socket.getOutputStream():
stream.write("ping")| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void throws IOException: |
No summary. |
| public | writewrite(value as String) as Void throws IOException: |
Writes text to the socket. |
| public | writeByteswriteBytes(value as Array<Byte>) as Void throws IOException: |
Writes raw bytes to the socket. |