NativeDtlsEngine.sendAlert
TlsProgress sendAlert(DtlsPeerState state, AlertLevel level,
AlertDescription description) @safeBuild and send a DTLS alert record to a peer.
If the peer has active write AEAD keys, the alert is encrypted. Otherwise it is sent in the clear (epoch 0).
Parameters
state | The peer state. |
level | The alert level (WARNING or FATAL). |
description | The alert description code. |
Returns
TlsProgress.DONE if sent, TlsProgress.ERROR on failure.