interface SecureScuttlebuttStreamServer
(source)
Interface used to encrypt and decrypt messages to and from a client.
open static fun isGoodbye(message: Bytes): Boolean
Checks if a message is a goodbye message, indicating the end of the connection |
|
abstract fun readFromClient(message: Bytes): Bytes
Adds message bytes to the reader stream, returning the bytes that could be decrypted. |
|
abstract fun sendGoodbyeToClient(): Bytes
Prepares a goodbye message to be sent to the client |
|
abstract fun sendToClient(message: Bytes): Bytes
Prepares a message to be sent to the client |