Inherits: StreamPeer < Reference < Object
SSL stream peer.
SSL stream peer. This object can be used to connect to an SSL server or accept a single SSL client connection.
| bool | blocking_handshake | true |
| Error | accept_stream ( StreamPeer stream, CryptoKey private_key, X509Certificate certificate, X509Certificate chain=null ) |
| Error | connect_to_stream ( StreamPeer stream, bool validate_certs=false, String for_hostname="", X509Certificate valid_certificate=null ) |
| void | disconnect_from_stream ( ) |
| Status | get_status ( ) const |
| void | poll ( ) |
enum Status:
StreamPeerSSL that is disconnected.StreamPeerSSL during handshaking.StreamPeerSSL that is connected to a host.StreamPeerSSL in error state.| Default | true |
| Setter | set_blocking_handshake_enabled(value) |
| Getter | is_blocking_handshake_enabled() |
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.get_available_bytes for it to work properly.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_streampeerssl.html