class_streampeerssl.rst 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the StreamPeerSSL.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_StreamPeerSSL:
  5. StreamPeerSSL
  6. =============
  7. **Inherits:** :ref:`StreamPeer<class_streampeer>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. SSL Stream peer.
  12. Member Functions
  13. ----------------
  14. +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`accept_stream<class_StreamPeerSSL_accept_stream>` **(** :ref:`StreamPeer<class_streampeer>` stream **)** |
  16. +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`connect_to_stream<class_StreamPeerSSL_connect_to_stream>` **(** :ref:`StreamPeer<class_streampeer>` stream, :ref:`bool<class_bool>` validate_certs=false, :ref:`String<class_string>` for_hostname="" **)** |
  18. +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`disconnect_from_stream<class_StreamPeerSSL_disconnect_from_stream>` **(** **)** |
  20. +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`get_status<class_StreamPeerSSL_get_status>` **(** **)** const |
  22. +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. Numeric Constants
  24. -----------------
  25. - **STATUS_DISCONNECTED** = **0** --- A status representing a ``StreamPeerSSL`` that is disconnected.
  26. - **STATUS_CONNECTED** = **1** --- A status representing a ``StreamPeerSSL`` that is connected to a host.
  27. - **STATUS_ERROR_NO_CERTIFICATE** = **2** --- An errot status that shows the peer did not present a SSL certificate and validation was requested.
  28. - **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.
  29. Description
  30. -----------
  31. SSL Stream peer. This object can be used to connect to SSL servers.
  32. Member Function Description
  33. ---------------------------
  34. .. _class_StreamPeerSSL_accept_stream:
  35. - :ref:`int<class_int>` **accept_stream** **(** :ref:`StreamPeer<class_streampeer>` stream **)**
  36. .. _class_StreamPeerSSL_connect_to_stream:
  37. - :ref:`int<class_int>` **connect_to_stream** **(** :ref:`StreamPeer<class_streampeer>` stream, :ref:`bool<class_bool>` validate_certs=false, :ref:`String<class_string>` for_hostname="" **)**
  38. Connect to a peer using an underlying :ref:`StreamPeer<class_streampeer>` "stream", when "validate_certs" is true, ``StreamPeerSSL`` will validate that the certificate presented by the peer matches the "for_hostname".
  39. .. _class_StreamPeerSSL_disconnect_from_stream:
  40. - void **disconnect_from_stream** **(** **)**
  41. Disconnect from host.
  42. .. _class_StreamPeerSSL_get_status:
  43. - :ref:`int<class_int>` **get_status** **(** **)** const
  44. Return the status of the connection, one of STATUS\_\* enum.