DTLS packet peer.
This class represents a DTLS peer connection. It can be used to connect to a DTLS server, and is returned by DTLSServer.take_connection.
|Error||connect_to_peer ( PacketPeerUDP packet_peer, bool validate_certs=true, String for_hostname="", X509Certificate valid_certificate=null )|
|void||disconnect_from_peer ( )|
|Status||get_status ( ) const|
|void||poll ( )|
PacketPeerDTLSthat is disconnected.
PacketPeerDTLSthat is currently performing the handshake with a remote peer.
PacketPeerDTLSthat is connected to a remote peer.
PacketPeerDTLSin a generic error state.
peer beginning the DTLS handshake using the underlying PacketPeerUDP which must be connected (see PacketPeerUDP.connect_to_host). If
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
Disconnects this peer, terminating the DTLS session.
Returns the status of the connection. See Status for values.
Poll the connection to check for incoming packets. Call this frequently to update the status and keep the connection working.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.