RecordLayer.readRecord
TlsRecord readRecord()Reads the next complete TLS record from the transport.
Blocks until a complete record is available. Throws on I/O errors, EOF, or if the transport would block.
Returns
The parsed record.
Throws
TlsException on I/O or protocol errors.