PacketPeerDTLS

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.takeConnection. Warning: SSL/TLS certificate revocation and certificate pinning are currently not supported. Revoked certificates are accepted as long as they are otherwise valid. If this is a concern, you may want to use automatically managed certificates with a short validity period.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Status
enum Status

Functions

connectToPeer
GodotError connectToPeer(PacketPeerUDP packet_peer, bool validate_certs, String for_hostname, X509Certificate valid_certificate)

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.

disconnectFromPeer
void disconnectFromPeer()

Disconnects this peer, terminating the DTLS session.

getStatus
PacketPeerDTLS.Status getStatus()

Returns the status of the connection. See status for values.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(PacketPeerDTLS other)
opEquals
bool opEquals(typeof(null) n)
poll
void poll()

Poll the connection to check for incoming packets. Call this frequently to update the status and keep the connection working.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
PacketPeerDTLS _new()

Construct a new instance of PacketPeerDTLS. Note: use memnew!PacketPeerDTLS instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta