Adicionando o plugin corretamente
This commit is contained in:
1 parent
e9ce17abb3
commit
947aaf00b7
25 files changed
+377
-18
No files matched your search
@@ -8,3 +8,5 @@
|
||||
|
||||
# JARs gerados
|
||||
*.jar
|
||||
|
||||
.idea/
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user