NativeTlsStream.flush

TlsProgress flush()

Flushes any buffered data through the TLS layer.

Returns

TlsProgress.DONE when all data flushed,

NEED_WRITE if the transport would block.