klyn.net.ssl.SSLSocket.fromSocket(socket
field
public static fromSocket(socket as Socket,
Description
Stable alias of `upgrade(...)` for wrapping an existing TCP socket in TLS.
import klyn.net
import klyn.net.ssl

# plain = Socket("example.com", 443)
# secure = SSLSocket.fromSocket(plain, "example.com", 443)