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