RecordLayer.tryReadRecord
TlsProgress tryReadRecord(ref TlsRecord record)Attempts to read the next complete TLS record.
Reads from the internal buffer first, then from the transport. Returns TlsProgress.DONE when a complete record is available, TlsProgress.NEED_READ when more data is needed from the transport, or TlsProgress.ERROR on I/O failure or EOF.
Parameters
record | Set to the parsed record on DONE. |
Returns
Progress indicator for the operation.