NativeDtlsEngine.handshake

TlsProgress handshake() @safe

Perform or continue the DTLS handshake.

For clients, this initiates or continues the handshake with the server. For servers, this is typically not called directly; use processDatagram instead.

Returns

TlsProgress indicating the handshake status:
  • DONE when handshake is complete
  • NEED_READ when waiting for data from peer
  • NEED_WRITE when data needs to be sent
  • ERROR on handshake failure