public class SSLSocketInputStream implements InputStream:
import klyn.net.ssl
socket = SSLSocket("example.com", 443)
try stream = socket.getInputStream():
print(stream.readBytes(8).size)| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void throws IOException: |
No summary. |
| public | readread() as String throws IOException: |
Reads a text chunk from the TLS socket. |
| public | readBytesreadBytes(length as Int) as Array<Byte> throws IOException: |
Reads bytes from the TLS socket. |