StreamPeerSSLConnectToStream Method |
Connects to a peer using an underlying StreamPeerstream. If validate_certs is true, StreamPeerSSL will validate that the certificate presented by the peer matches the for_hostname.
Note: Specifying a custom valid_certificate is not supported in HTML5 exports due to browsers restrictions.
Namespace: Godot
public Error ConnectToStream( StreamPeer stream, bool validateCerts = false, string forHostname = "", X509Certificate validCertificate = null )
[Missing <param name="stream"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <param name="validateCerts"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <param name="forHostname"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <param name="validCertificate"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <returns> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]