P2pChat
1.0.0
======
1. Inicie el servidor P2pUdpServer
[main] INFO io.itit.p2p.P2pUdpServer - Server Start port:9999
2. Inicie el cliente 1 P2pUdpClient
[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. Inicie el cliente 2 de P2pUdpClient
[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. Después de que el cliente 2 reciba el paquete P2PCHAT, puede apagar el servidor. Los dos clientes se comunican cada 5 segundos.
[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