Adicionando o plugin corretamente

This commit is contained in:
GustavoHMDS committed 2026-08-18 10:06:47 -03:00
1 parent e9ce17abb3
commit 947aaf00b7
25 files changed
+377 -18

No files matched your search

+2
View File
@@ -8,3 +8,5 @@
# JARs gerados
*.jar
.idea/
+5 -1
View File
@@ -135,10 +135,14 @@ public class MainWindow extends javax.swing.JFrame {
return this.port;
}
public SocketUDP getSocket() {
public SocketUDP getSocketUDP() {
return this.socketUDP;
}
public SocketTCP getSocketTCP() {
return this.socketTCP;
}
public List<Plugin> getPlugins() {
return plugins;
}
@@ -66,7 +66,7 @@ public class HeartbeatManager {
private void announce() {
try {
HeartbeatMessage msg = new HeartbeatMessage(mainWindow.getUserName(), instanceId);
mainWindow.getSocket().sendMulticast(msg.toByteArray());
mainWindow.getSocketUDP().sendMulticast(msg.toByteArray());
} catch (IOException ex) {
Logger.getLogger(HeartbeatManager.class.getName()).log(Level.WARNING, "Falha ao enviar heartbeat", ex);
}