Click or drag to resize

DTLSServerTakeConnection Method

Try to initiate the DTLS handshake with the given udp_peer which must be already connected (see ConnectToHost(String, Int32)).

Note: You must check that the state of the return PacketPeerUDP is , as it is normal that 50% of the new connections will be invalid due to cookie exchange.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public PacketPeerDTLS TakeConnection(
	PacketPeerUDP udpPeer
)

Parameters

udpPeer
Type: GodotPacketPeerUDP

[Missing <param name="udpPeer"/> documentation for "M:Godot.DTLSServer.TakeConnection(Godot.PacketPeerUDP)"]

Return Value

Type: PacketPeerDTLS

[Missing <returns> documentation for "M:Godot.DTLSServer.TakeConnection(Godot.PacketPeerUDP)"]

See Also