Method SSL.ClientConnection()->create()

class SSL.ClientConnection

Method create

SSL.ClientConnection SSL.ClientConnection(Context ctx, string(8bit)|void server_name, Session|void session, string(8bit)|void early_data)

Description

Initialize a new ClientConnection.

Parameter ctx

Context to use.

Parameter server_name

Optional host name of the server.

Parameter session

Optional Session to resume.

Parameter early_data

TLS 1.3 (RFC 8446 section 2.3) 0-RTT application data to send immediately, opportunistically -- see client_hello()'s own parameter doc for exactly when this is (and isn't) actually sent as 0-RTT.