Dtls13Server.buildDtlsRecord

ubyte[] buildDtlsRecord(ContentType contentType, const(ubyte)[] payload)

Builds a complete DTLS record with 13-byte header.

Parameters

contentTypeThe record content type.
payloadThe record payload.

Returns

The serialized DTLS record (header + payload).