M3.
Command line interface. [5p]. Each node must provide a command line interface through which the following commands can be executed:
(a) put: Takes a single argument, the contents of the file you are uploading, and outputs the hash of the object, if it can be uploaded successfully.
(b) get: Takes a hash as its only argument, and outputs the contents of the object and the node it was retrieved from, if it could be downloaded successfully.
(c) exit: Terminates the node.
M3. Command line interface. [5p]. Each node must provide a command line interface through which the following commands can be executed: (a) put: Takes a single argument, the contents of the file you are uploading, and outputs the hash of the object, if it can be uploaded successfully. (b) get: Takes a hash as its only argument, and outputs the contents of the object and the node it was retrieved from, if it could be downloaded successfully. (c) exit: Terminates the node.