NativeDtlsPeer.write

TlsResult write(const(ubyte)[] data)

Write application data to be encrypted and sent.

Encrypts the provided data and queues it for transmission to the peer. This is a non-blocking operation.

Parameters

dataApplication data to encrypt and send.

Returns

TlsResult with bytes written, or a progress indicator

if the operation would block or an error occurred.