tuweni / org.apache.tuweni.scuttlebutt.handshake / SecureScuttlebuttStreamServer / readFromClient

readFromClient

abstract fun readFromClient(message: Bytes!): Bytes! (source)

Adds message bytes to the reader stream, returning the bytes that could be decrypted.

Parameters

message - Bytes!: the message to decrypt

Exceptions

StreamException - if the message cannot be decrypted

Return
Bytes!: the message, decrypted and ready for consumption, or null if the bytes provided were an incomplete message.