Skip to content

Files

Latest commit

d452924 · Mar 10, 2023

History

History

shell

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 4, 2021
Nov 4, 2021
Mar 10, 2023
Jul 5, 2022

radix-shell

Run from the project root dir: ./shell/radix-shell.sh.

In jshell, use /open to load the examples, f.e.: /open ./shell/examples/start_two_nodes.java

Use jshell to interact with the nodes:

  • n1.peers() - to show the peers connected to n1
  • n2.onMsg(PeerPongMessage.class, m -> System.out.println("Received Pong message")) - print received Pong messages on n2
  • n2.sendMsg(n1.self(), new PeerPingMessage()) - to send a ping message from n2 to n1.

See examples directory for more.