implementovan user ping

verze3
Michal 2026-09-02 07:25:30 +02:00
parent 0802177be9
commit d6e5b424a4
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,9 @@ public class DialogUserPing extends JFrame {
}
private void startPing() {
startButton.setEnabled(false);
stopButton.setEnabled(true);
// Reset statistik
totalSent = 0;
successful = 0;
@ -119,6 +122,8 @@ public class DialogUserPing extends JFrame {
}
private void stopPing() {
startButton.setEnabled(true);
stopButton.setEnabled(false);
Object[] obj = {node.getIp(), getName()};
NettyClientManager.sendMessage(Message.USER_PING_STOP, obj);
}