createDtlsContext
fn
DtlsContext createDtlsContext(TlsBackend backend = TlsBackend.AUTO)Creates a native DTLS context using pure D cryptographic primitives.
This is the primary factory function for creating DTLS connections. The returned context can be configured and used to create multiple client and server engines.
Parameters
backend | The TLS backend to use. Only TlsBackend.AUTO and TlsBackend.NATIVE are supported by this package. |
Returns
A configured DTLS context.
Throws
TlsException if the requested backend is not available.