Click or drag to resize

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
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error ConnectToStream(
	StreamPeer stream,
	bool validateCerts = false,
	string forHostname = "",
	X509Certificate validCertificate = null
)

Parameters

stream
Type: GodotStreamPeer

[Missing <param name="stream"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]

validateCerts (Optional)
Type: SystemBoolean

[Missing <param name="validateCerts"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]

forHostname (Optional)
Type: SystemString

[Missing <param name="forHostname"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]

validCertificate (Optional)
Type: GodotX509Certificate

[Missing <param name="validCertificate"/> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.StreamPeerSSL.ConnectToStream(Godot.StreamPeer,System.Boolean,System.String,Godot.X509Certificate)"]

See Also