feat: add mermaid sequence diagram

This commit is contained in:
2025-03-25 17:59:14 +01:00
parent 135af82172
commit cd3b58f7f8
2 changed files with 9 additions and 1 deletions

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
```mermaid
sequenceDiagram
Note over Client, Serveur: DatagramSocket("localhost", 66666)
Client->>+Serveur: DatagramPacket("Salve !", 7, "localhost", 6666)
Note over Serveur, Client: DatagramSocket("localhost", 66666)
Serveur->>+Client: DatagramPacket("Accusé de réception", 19, "localhost", 6666)
```

View File

@@ -1,6 +1,7 @@
package clientserver; package clientserver;
public class App { public class App {
public String getGreeting() { public String getGreeting() {
return "Hello World!"; return "Hello World!";
} }
@@ -8,6 +9,6 @@ public class App {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println(new App().getGreeting()); System.out.println(new App().getGreeting());
Server.scannerUDP(1000, 5000); Server.scannerUDP(0, 5000);
} }
} }