SSL stream peer.
SSL stream peer. This object can be used to connect to an SSL server or accept a single SSL client connection.
get_status ( ) const
poll ( )
Status STATUS_DISCONNECTED =
A status representing a StreamPeerSSL that is disconnected.
Status STATUS_HANDSHAKING =
A status representing a StreamPeerSSL during handshaking.
Status STATUS_CONNECTED =
A status representing a StreamPeerSSL that is connected to a host.
Status STATUS_ERROR =
A status representing a StreamPeerSSL in error state.
Status STATUS_ERROR_HOSTNAME_MISMATCH =
An error status that shows a mismatch in the SSL certificate domain presented by the host and the domain requested for validation.
bool blocking_handshake =
There is currently no description for this property. Please help us by contributing one!
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
true, StreamPeerSSL will validate that the certificate presented by the peer matches the
Note: Specifying a custom
valid_certificate is not supported in HTML5 exports due to browsers restrictions.
void disconnect_from_stream ( )
Disconnects from host.
Status get_status ( ) const
Returns the status of the connection. See Status for values.
void poll ( )
Poll the connection to check for incoming bytes. Call this right before StreamPeer.get_available_bytes for it to work properly.