PacketPeerDTLS.connectToPeer

Connects a peer beginning the DTLS handshake using the underlying PacketPeerUDP which must be connected (see PacketPeerUDP.connectToHost). 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.

struct PacketPeerDTLS
@nogc nothrow
GodotError
connectToPeer

Meta