NativeDtlsPeer.read

TlsResult read(ubyte[] buffer)

Read decrypted application data from this peer.

Attempts to read and decrypt application data received from the peer. This is a non-blocking operation.

Parameters

bufferBuffer to read decrypted data into.

Returns

TlsResult with bytes read, or a progress indicator if

the operation would block or an error occurred.