What is this?
This is piece of code implements a protocol for a Dining Cryptographers Network.
It offers a server that sums up and participants.
How to use it in my code?
Import this as project to eclipse and include it into your code that shall use DC communication.
You will need to create a Participant object and call the establishNewConnection() method. Memorize the Participant object and the returning Connection object.
Send new messages to the DC-Network by invoking the feedWorkCycleManager() of the Connection object.
How to run the DC-Server?
Export dc-- as dc--.jar. Then call:
java -jar dc--.jar <options>
If you run the jar without any options, you'll be presented a help, describing all available options.