DtlsRecordLayer.buildRecord
Build a DTLS record for sending.
Creates a complete DTLS record with the appropriate header, using the tracked current epoch (see advanceEpoch) and auto-incrementing sequence number.
Parameters
type | Content type. |
payload | Record payload (may be encrypted). |
Returns
Serialized DTLS record bytes.