mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Proofread and improve the whole class reference
- Document a few more properties and methods - Add more information to many classes - Fix lots of typos and gramar mistakes - Use [code] tags for parameters consistently - Use [b] and [i] tags consistently - Put "Warning:" and "Note:" on their own line to be more visible, and make them always bold - Tweak formatting in code examples to be more readable - Use double quotes consistently - Add more links to third-party technologies
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="StreamPeerSSL" inherits="StreamPeer" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
SSL Stream peer.
|
||||
SSL stream peer.
|
||||
</brief_description>
|
||||
<description>
|
||||
SSL Stream peer. This object can be used to connect to SSL servers.
|
||||
SSL stream peer. This object can be used to connect to SSL servers.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/tutorials/networking/ssl_certificates.html</link>
|
||||
@@ -28,28 +28,28 @@
|
||||
<argument index="2" name="for_hostname" type="String" default="""">
|
||||
</argument>
|
||||
<description>
|
||||
Connect to a peer using an underlying [StreamPeer] "stream", when "validate_certs" is [code]true[/code], [StreamPeerSSL] will validate that the certificate presented by the peer matches the "for_hostname".
|
||||
Connects to a peer using an underlying [StreamPeer] [code]stream[/code]. If [code]validate_certs[/code] is [code]true[/code], [StreamPeerSSL] will validate that the certificate presented by the peer matches the [code]for_hostname[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="disconnect_from_stream">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Disconnect from host.
|
||||
Disconnects from host.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_status" qualifiers="const">
|
||||
<return type="int" enum="StreamPeerSSL.Status">
|
||||
</return>
|
||||
<description>
|
||||
Returns the status of the connection, one of STATUS_* enum.
|
||||
Returns the status of the connection. See [enum Status] for values.
|
||||
</description>
|
||||
</method>
|
||||
<method name="poll">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Poll the connection to check for incoming bytes. Call this right before "get_available_bytes()" for it to work properly.
|
||||
Poll the connection to check for incoming bytes. Call this right before [method StreamPeer.get_available_bytes] for it to work properly.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
||||
Reference in New Issue
Block a user