.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_StreamPeerSSL: StreamPeerSSL ============= **Inherits:** :ref:`StreamPeer` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- SSL Stream peer. Member Functions ---------------- +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Error | :ref:`accept` **(** :ref:`StreamPeer` stream **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Error | :ref:`connect` **(** :ref:`StreamPeer` stream, :ref:`bool` validate_certs=false, :ref:`String` for_hostname="" **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`disconnect` **(** **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_status` **(** **)** const | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Numeric Constants ----------------- - **STATUS_DISCONNECTED** = **0** --- A status representing a :ref:`StreamPeerSSL` that is disconnected. - **STATUS_CONNECTED** = **1** --- A status representing a :ref:`StreamPeerSSL` that is connected to a host. - **STATUS_ERROR_NO_CERTIFICATE** = **2** --- An errot status that shows the peer did not present a SSL certificate and validation was requested. - **STATUS_ERROR_HOSTNAME_MISMATCH** = **3** --- An error status that shows a mismatch in the SSL certificate domain presented by the host and the domain requested for validation. Description ----------- SSL Stream peer. This object can be used to connect to SSL servers. Member Function Description --------------------------- .. _class_StreamPeerSSL_accept: - Error **accept** **(** :ref:`StreamPeer` stream **)** .. _class_StreamPeerSSL_connect: - Error **connect** **(** :ref:`StreamPeer` stream, :ref:`bool` validate_certs=false, :ref:`String` for_hostname="" **)** Connect to a peer using an underlying :ref:`StreamPeer` "stream", when "validate_certs" is true, :ref:`StreamPeerSSL` will validate that the certificate presented by the peer matches the "for_hostname". .. _class_StreamPeerSSL_disconnect: - void **disconnect** **(** **)** Disconnect from host. .. _class_StreamPeerSSL_get_status: - :ref:`int` **get_status** **(** **)** const Return the status of the connection, one of STATUS\_\* enum.