From 5c78be030acdefb47ed0642c366036d77e14f1a6 Mon Sep 17 00:00:00 2001 From: Martin Schmollinger <martin.schmollinger@reutlingen-university.de> Date: Thu, 4 Nov 2021 08:12:11 +0000 Subject: [PATCH] Add README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..10c578d --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Exercise 1.1 +This is a solution to exercise 1.1 (Date Service basted on UDP) of the hands-on training of lecture **distributed systems**. + +Each folder contains a gradle project. + +Start the server from a CLI (like bash, cmd, powershell) as follows: +* `$ cd server` +* `$ gradle run` + +if you have installed gradle on your system, otherwise use the gradle wrapper contained in the folder (gradlew.bat, gradlew). + +The server listens on port 6789. + +When the server is up and running, you can start the client from a CLI as often you want. The client accepts several parameter: +- `args[0]: style ("SHORT", "MEDIUM" or "FULL")` +- `args[1]: hostname of server` + +When you start the client without passing any parameter, the default values are "SHORT" and "localhost". + +* `$ cd client` +* `$ gradle run --args="FULL localhost"` -- GitLab