Accepts a peer connection as a server using the given private_key and providing the given certificate to the client. You can pass the optional chain parameter to provide additional CA chain information along with the certificate.
Connects to a peer using an underlying StreamPeer stream. If validate_certs is true, StreamPeerSSL will validate that the certificate presented by the peer matches the for_hostname. Note: Specifying a custom valid_certificate is not supported in HTML5 exports due to browsers restrictions.
Disconnects from host.
Returns the status of the connection. See status for values.
Poll the connection to check for incoming bytes. Call this right before StreamPeer.getAvailableBytes for it to work properly.
Construct a new instance of StreamPeerSSL. Note: use memnew!StreamPeerSSL instead.
SSL stream peer.
This object can be used to connect to an SSL server or accept a single SSL client connection.