diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-09-12 17:42:36 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-09-12 17:45:41 -0300 |
commit | 4f929a0fdfae24b1ca5acf0b732219119090ee43 (patch) | |
tree | 730471182cae00f2e47c7430db441d057383d29b /doc/classes/StreamPeerSSL.xml | |
parent | 175777596ec3521731665dd750fd7087793b10fc (diff) | |
download | redot-engine-4f929a0fdfae24b1ca5acf0b732219119090ee43.tar.gz |
Changed the doc class generation to individual files per class. It is also possible to save module files in module directories and the build system will
recognize them.
Diffstat (limited to 'doc/classes/StreamPeerSSL.xml')
-rw-r--r-- | doc/classes/StreamPeerSSL.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/doc/classes/StreamPeerSSL.xml b/doc/classes/StreamPeerSSL.xml new file mode 100644 index 0000000000..7a2843ff47 --- /dev/null +++ b/doc/classes/StreamPeerSSL.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<class name="StreamPeerSSL" inherits="StreamPeer" category="Core" version="3.0.alpha.custom_build"> + <brief_description> + SSL Stream peer. + </brief_description> + <description> + SSL Stream peer. This object can be used to connect to SSL servers. + </description> + <tutorials> + </tutorials> + <demos> + </demos> + <methods> + <method name="accept_stream"> + <return type="int" enum="Error"> + </return> + <argument index="0" name="stream" type="StreamPeer"> + </argument> + <description> + </description> + </method> + <method name="connect_to_stream"> + <return type="int" enum="Error"> + </return> + <argument index="0" name="stream" type="StreamPeer"> + </argument> + <argument index="1" name="validate_certs" type="bool" default="false"> + </argument> + <argument index="2" name="for_hostname" type="String" default=""""> + </argument> + <description> + Connect to a peer using an underlying [StreamPeer] "stream", when "validate_certs" is true, [StreamPeerSSL] will validate that the certificate presented by the peer matches the "for_hostname". + </description> + </method> + <method name="disconnect_from_stream"> + <return type="void"> + </return> + <description> + Disconnect from host. + </description> + </method> + <method name="get_status" qualifiers="const"> + <return type="int" enum="StreamPeerSSL.Status"> + </return> + <description> + Return the status of the connection, one of STATUS_* enum. + </description> + </method> + </methods> + <constants> + <constant name="STATUS_DISCONNECTED" value="0"> + A status representing a [StreamPeerSSL] that is disconnected. + </constant> + <constant name="STATUS_CONNECTED" value="1"> + A status representing a [StreamPeerSSL] that is connected to a host. + </constant> + <constant name="STATUS_ERROR_NO_CERTIFICATE" value="2"> + An errot status that shows the peer did not present a SSL certificate and validation was requested. + </constant> + <constant name="STATUS_ERROR_HOSTNAME_MISMATCH" value="3"> + An error status that shows a mismatch in the SSL certificate domain presented by the host and the domain requested for validation. + </constant> + </constants> +</class> |