refactor: add arguments support to run client or server

This commit is contained in:
2025-03-31 20:58:05 +02:00
parent b4ddf0dca4
commit 15d03528fa
11 changed files with 198 additions and 50 deletions

View File

@@ -1,3 +1,39 @@
# ClientServer
## Build
```bash
./gradlew build
```
## Run
### Client
```bash
./gradlew run --args='client'
```
or
```bash
./gradlew runServer
```
### Server
```bash
./gradlew run --args='server'
```
or
```bash
./gradlew runServer
```
## Documentation
```mermaid
sequenceDiagram
Note over Client, Serveur: DatagramSocket("localhost", 66666)