feat: add mermaid sequence diagram
This commit is contained in:
7
README.md
Normal file
7
README.md
Normal 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)
|
||||
```
|
||||
@@ -1,6 +1,7 @@
|
||||
package clientserver;
|
||||
|
||||
public class App {
|
||||
|
||||
public String getGreeting() {
|
||||
return "Hello World!";
|
||||
}
|
||||
@@ -8,6 +9,6 @@ public class App {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new App().getGreeting());
|
||||
|
||||
Server.scannerUDP(1000, 5000);
|
||||
Server.scannerUDP(0, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user