PacketPeerDTLSConnectToPeer Method |
Connects a peer beginning the DTLS handshake using the underlying PacketPeerUDP which must be connected (see ConnectToHost(String, Int32)). If validate_certs is true, PacketPeerDTLS will validate that the certificate presented by the remote peer and match it with the for_hostname argument. You can specify a custom X509Certificate to use for validation via the valid_certificate argument.
Namespace: Godot
public Error ConnectToPeer( PacketPeerUDP packetPeer, bool validateCerts = true, string forHostname = "", X509Certificate validCertificate = null )
[Missing <param name="packetPeer"/> documentation for "M:Godot.PacketPeerDTLS.ConnectToPeer(Godot.PacketPeerUDP,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <param name="validateCerts"/> documentation for "M:Godot.PacketPeerDTLS.ConnectToPeer(Godot.PacketPeerUDP,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <param name="forHostname"/> documentation for "M:Godot.PacketPeerDTLS.ConnectToPeer(Godot.PacketPeerUDP,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <param name="validCertificate"/> documentation for "M:Godot.PacketPeerDTLS.ConnectToPeer(Godot.PacketPeerUDP,System.Boolean,System.String,Godot.X509Certificate)"]
[Missing <returns> documentation for "M:Godot.PacketPeerDTLS.ConnectToPeer(Godot.PacketPeerUDP,System.Boolean,System.String,Godot.X509Certificate)"]