P2pChat
1.0.0
======
1. Starten Sie den P2pUdpServer-Server
[main] INFO io.itit.p2p.P2pUdpServer - Server Start port:9999
2. Starten Sie den P2pUdpClient-Client 1
[main] INFO io.itit.p2p.P2pUdpClient - Client Start
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"LOGIN","requestId":1,"rsp":"1"} from /127.0.0.1:9999
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"LIST","requestId":2,"rsp":"{"127.0.0.1:57561":"1"}"} from /127.0.0.1:9999
3. Starten Sie den P2pUdpClient-Client 2
[main] INFO io.itit.p2p.P2pUdpClient - Client Start
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"LOGIN","requestId":1,"rsp":"2"} from /127.0.0.1:9999
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"LIST","requestId":2,"rsp":"{"127.0.0.1:57561":"1","127.0.0.1:57562":"2"}"} from /127.0.0.1:9999
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
4. Nachdem Client 2 das P2PCHAT-Paket empfangen hat, kann er den Server herunterfahren. Die beiden Clients kommunizieren alle 5 Sekunden.
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561
[Thread-0] INFO io.itit.p2p.P2pUdpClient - onReceieveMessage data:{"cmd":"P2PCHAT","requestId":3} from /127.0.0.1:57561