Dtls12Client.handshake

TlsProgress handshake() @trusted

Performs or continues the DTLS 1.2 client handshake.

This is a resumable state machine. Call repeatedly until it returns TlsProgress.DONE.

Returns

Progress indicator: DONE when complete, NEED_READ to wait

for datagram, NEED_WRITE to send outgoing datagram, ERROR on failure.