Overview
>
klyn.net.ssl
>
SSLSocket
>
connect
Version 0.1.2
Overview
Index
Tree
Deprecated
klyn.net.ssl.SSLSocket.connect
method
public connect(host as String, port as Int) as Void throws SSLException:
Description
Connects this TLS socket.
Parameters
host Remote host.
port Remote port.
Throws
SSLException when the TLS connection fails. ```klyn import klyn.net.ssl socket = SSLSocket() socket.connect("example.com", 443) print(socket.isConnected) socket.close() ```