class_streampeerssl.rst 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. Enums
  24. -----
  25. .. _enum_StreamPeerSSL_Status:
  26. enum **Status**
  27. - **STATUS_DISCONNECTED** = **0** --- A status representing a ``StreamPeerSSL`` that is disconnected.
  28. - **STATUS_CONNECTED** = **1** --- A status representing a ``StreamPeerSSL`` that is connected to a host.
  29. - **STATUS_ERROR_NO_CERTIFICATE** = **2** --- An errot status that shows the peer did not present a SSL certificate and validation was requested.
  30. - **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.
  31. Description
  32. -----------
  33. SSL Stream peer. This object can be used to connect to SSL servers.
  34. Member Function Description
  35. ---------------------------
  36. .. _class_StreamPeerSSL_accept_stream:
  37. - :ref:`int<class_int>` **accept_stream** **(** :ref:`StreamPeer<class_streampeer>` stream **)**
  38. .. _class_StreamPeerSSL_connect_to_stream:
  39. - :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="" **)**
  40. 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".
  41. .. _class_StreamPeerSSL_disconnect_from_stream:
  42. - void **disconnect_from_stream** **(** **)**
  43. Disconnect from host.
  44. .. _class_StreamPeerSSL_get_status:
  45. - :ref:`int<class_int>` **get_status** **(** **)** const
  46. Return the status of the connection, one of STATUS\_\* enum.