ConsoleHandler

class ConsoleHandler(myNode: Node) : Runnable

This class handles console input and output for a node in a distributed system. It implements the Runnable interface to allow it to be run in a separate thread.

Constructors

Link copied to clipboard
constructor(myNode: Node)

Functions

Link copied to clipboard
open override fun run()

The main loop of the ConsoleHandler. It reads command line inputs and parses them until an error occurs or the reading flag is set to false.