From 947aaf00b79be365b4e1580e9e2ee8b35c221357 Mon Sep 17 00:00:00 2001 From: GustavoHMDS Date: Tue, 18 Aug 2026 10:06:47 -0300 Subject: [PATCH] Adicionando o plugin corretamente --- .gitignore | 2 + pitiupi.chat/build/built-jar.properties | 2 +- .../classes/pitiupi/chat/GUI/ChatWindow.class | Bin 5713 -> 5751 bytes pitiupi.chat/pitiupi.chat.iml | 9 ++ .../src/pitiupi/chat/GUI/ChatWindow.java | 4 +- pitiupi.screenCast/.idea/ant.xml | 6 + pitiupi.screenCast/.idea/misc.xml | 3 + pitiupi.screenCast/.idea/vcs.xml | 6 + pitiupi.screenCast/.idea/workspace.xml | 84 ++++++++-- pitiupi.screenCast/build/built-jar.properties | 2 +- .../screenCast/GUI/ScreenCastWindow.class | Bin 6008 -> 6026 bytes .../screenCast/GUI/ScreenCastWindow.java | 2 +- .../out/GUI/SocketTestMenu.class | Bin 0 -> 1303 bytes .../out/GUI/SocketTestWindow.class | Bin 0 -> 6204 bytes .../META-INF/services/pitiupi.plugin.Plugin | 1 + pitiupi.testSocket/out/net/TestMessage.class | Bin 0 -> 739 bytes .../out/plugin/SocketTest.class | Bin 0 -> 1584 bytes .../src/GUI/SocketTestMenu.java | 21 +++ .../src/GUI/SocketTestWindow.java | 151 ++++++++++++++++++ .../META-INF/services/pitiupi.plugin.Plugin | 1 + pitiupi.testSocket/src/net/TestMessage.java | 35 ++++ pitiupi.testSocket/src/plugin/SocketTest.java | 56 +++++++ pitiupi/.gitignore | 2 + pitiupi/src/pitiupi/GUI/MainWindow.java | 6 +- .../src/pitiupi/control/HeartbeatManager.java | 2 +- 25 files changed, 377 insertions(+), 18 deletions(-) create mode 100644 pitiupi.screenCast/.idea/ant.xml create mode 100644 pitiupi.screenCast/.idea/misc.xml create mode 100644 pitiupi.screenCast/.idea/vcs.xml create mode 100644 pitiupi.testSocket/out/GUI/SocketTestMenu.class create mode 100644 pitiupi.testSocket/out/GUI/SocketTestWindow.class create mode 100644 pitiupi.testSocket/out/META-INF/services/pitiupi.plugin.Plugin create mode 100644 pitiupi.testSocket/out/net/TestMessage.class create mode 100644 pitiupi.testSocket/out/plugin/SocketTest.class create mode 100644 pitiupi.testSocket/src/GUI/SocketTestMenu.java create mode 100644 pitiupi.testSocket/src/GUI/SocketTestWindow.java create mode 100644 pitiupi.testSocket/src/META-INF/services/pitiupi.plugin.Plugin create mode 100644 pitiupi.testSocket/src/net/TestMessage.java create mode 100644 pitiupi.testSocket/src/plugin/SocketTest.java diff --git a/.gitignore b/.gitignore index 53d2375..237cb8c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ /pitiupi.chat/nbproject/private/ /pitiupi.screenCast/build/ /pitiupi.screenCast/dist/ + +.idea/ diff --git a/pitiupi.chat/build/built-jar.properties b/pitiupi.chat/build/built-jar.properties index 4683cca..ab84885 100644 --- a/pitiupi.chat/build/built-jar.properties +++ b/pitiupi.chat/build/built-jar.properties @@ -1,4 +1,4 @@ -#Sat, 18 Jul 2026 10:32:46 -0300 +#Mon, 17 Aug 2026 14:26:26 -0300 C\:\\Users\\extre\\OneDrive\\Documentos\\Faculdade\\2026_02\\Monitoria\\Pitiupi\\pitiupi.chat= diff --git a/pitiupi.chat/build/classes/pitiupi/chat/GUI/ChatWindow.class b/pitiupi.chat/build/classes/pitiupi/chat/GUI/ChatWindow.class index 4d4bde24b1457d32fe3713a0edd3bd467f67fea0..15ff534cd0f02910b8ea77d1478223f8ab952f94 100644 GIT binary patch delta 1163 zcmZuvOK%%h6#hQjQq;ktHs5NQ`|jLJ#AC_;{SU@v^Oe?bEVaqQ=Kh09JSV#K5#?F z=N7)edBT3B{A#&aD=*F$$7|(AgV05Ex?HcAxQVZHd~M+ye5)?EoeF-BA9Va^;TC=( z5^CK{s7W&uxrtva{EFYCp4!qpF`iY&&7^wY9H`tOx>^EG<&5~P)|YFQiLz5Uy0lU+ zI|lwBVsmrFQmJ^>ZK>0zhwAmAM#IEy{AEEyw~oJwV2fkbsn&`v+QeOWC55m^dQ>KG zFm%JjC7g?Z^jp+vsD;3S&$Jj&*8(Yj(2d#eS`)sA#pvdg)$SS1*cu-(VenCl`h9_ktROBPK^Vrt@i6;2HIy zebqNfq}8asN8Pdwzs_fg-q!YVXjY4fzqr~T?qi3V4kywHc@`b;$QWcNlQPQ+0ay@G z*zmjgn{S6-rvS9*JKZk8Jp`*e01u>ec8i1EE(ABVzOu6g=eG5MMfZRpgJ{kG_0{$#r#NCq@ zaBn(a7;NI7fhN7ueOuIkCfhb7*+aL=Ug&^I#J4@8U8QVi(>f116HArfegu2T X12T~ZIWET$(Oi>R8Yg&^Q%L>`DrL(rz1H`wZ>@8;c%|rE zezoY{4e_+hSS459` zU3qp|_1Sy65=Sfb%CVyrzgDjM|33%k%C#x=nVrjCGVwj(9V#6!`PEWw+TUI+&CNNu zjvq|?=;8)`Qn&24!Z&ft#4j#>#cj3E*=k+K?=JqppX#hL5&VnjQlCV+c3Zehq^73) z@p1p89+{b$;lqcAHR2uIcM(FjiGPS_lkix*QuTL~>SYHH5YR3UT|6SxczAv6l7kC4 zmjD@b8Dg6{6P^uPF6~d$J&txrRB5 zFA;HOMkYr&;!lnaXE-wX&Zxy#2!r(6xWVB@zG`xl%OMUgEJZ_%jyT-RQIlIV+3V_C z?>lZ+pU3jtslJK5U(%^1rAZSo-ntp(FYw`Nvn(jBLrC5AO*^huMPX8tFT!n;p3C%pom7Vs<>GxYD&lCZhiEFhF` z(0dl@4ax4!r=UVBP@%nC%RY$>vR`Bv9AIAdpjb|^Ag5JQ`Smi39F+N*u)Ww^U*=YM RO-QDvWS7Bh+`(Pwd<;dNt + + + + + + + + + \ No newline at end of file diff --git a/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java b/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java index 3b707fa..c963334 100644 --- a/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java +++ b/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java @@ -91,7 +91,7 @@ public class ChatWindow extends javax.swing.JDialog { } private void sendMessage() { - if (jTextArea1.getText().trim().length() == 0) { + if (jTextArea1.getText().trim().isEmpty()) { return; } ChatMessage message = new ChatMessage(mainWindow.getUserName(), jTextArea1.getText()); @@ -101,7 +101,7 @@ public class ChatWindow extends javax.swing.JDialog { public void sendChatMessage(Message message) { try { - mainWindow.getSocket().send(message.toByteArray()); + mainWindow.getSocketUDP().sendMulticast(message.toByteArray()); } catch (IOException ex) { Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex); } diff --git a/pitiupi.screenCast/.idea/ant.xml b/pitiupi.screenCast/.idea/ant.xml new file mode 100644 index 0000000..a2a4769 --- /dev/null +++ b/pitiupi.screenCast/.idea/ant.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pitiupi.screenCast/.idea/misc.xml b/pitiupi.screenCast/.idea/misc.xml new file mode 100644 index 0000000..59ad060 --- /dev/null +++ b/pitiupi.screenCast/.idea/misc.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/pitiupi.screenCast/.idea/vcs.xml b/pitiupi.screenCast/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/pitiupi.screenCast/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pitiupi.screenCast/.idea/workspace.xml b/pitiupi.screenCast/.idea/workspace.xml index 96dbbb3..61262cc 100644 --- a/pitiupi.screenCast/.idea/workspace.xml +++ b/pitiupi.screenCast/.idea/workspace.xml @@ -5,14 +5,24 @@ - - - - - - + + - + + + + + + + + + + + + + + +