Accepts a peer connection as a server using the given [code]private_key[/code] and providing the given [code]certificate[/code] to the client. You can pass the optional [code]chain[/code] parameter to provide additional CA chain information along with the certificate.
Connects to a peer using an underlying [StreamPeer] [code]stream[/code]. If [code]validate_certs[/code] is [code]true[/code], [StreamPeerSSL] will validate that the certificate presented by the peer matches the [code]for_hostname[/code].
[b]Note:[/b] Specifying a custom [code]valid_certificate[/code] is not supported in HTML5 exports due to browsers restrictions.
</description>
</method>
<methodname="disconnect_from_stream">
<returntype="void"/>
<description>
Disconnects from host.
</description>
</method>
<methodname="get_status"qualifiers="const">
<returntype="int"enum="StreamPeerSSL.Status"/>
<description>
Returns the status of the connection. See [enum Status] for values.
</description>
</method>
<methodname="poll">
<returntype="void"/>
<description>
Poll the connection to check for incoming bytes. Call this right before [method StreamPeer.get_available_bytes] for it to work properly.