From 01aeb922c43a3534e69252a8531df32c240ff8b2 Mon Sep 17 00:00:00 2001 From: SeekDaSky Date: Thu, 4 May 2017 12:30:53 +0200 Subject: [PATCH] =?UTF-8?q?ViewTerm=20v1.2=20(impl=C3=A9mentation=20du=20p?= =?UTF-8?q?ingback)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/ViewTerminal/PlaneContainer.java | 12 +++++++++++- viewer-terminal/viewTerm.jar | Bin 9946 -> 10210 bytes 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/viewer-terminal/src/ViewTerminal/PlaneContainer.java b/viewer-terminal/src/ViewTerminal/PlaneContainer.java index 98740f5..64a3cba 100644 --- a/viewer-terminal/src/ViewTerminal/PlaneContainer.java +++ b/viewer-terminal/src/ViewTerminal/PlaneContainer.java @@ -1,5 +1,6 @@ package ViewTerminal; +import java.io.IOException; import java.net.DatagramPacket; import java.nio.ByteBuffer; import java.util.ArrayList; @@ -27,8 +28,17 @@ public class PlaneContainer { public void notifyReceive() throws InvalidFlagException{ DatagramPacket packet = this.socket.synchronousReceive(); + ByteBuffer buf = ByteBuffer.allocate(1); + buf.put((byte)16); + DatagramPacket ping = new DatagramPacket(buf.array(),buf.array().length,packet.getAddress(),packet.getPort()); + try { + this.socket.send(ping); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } - ByteBuffer buf = ByteBuffer.wrap(packet.getData()); + buf = ByteBuffer.wrap(packet.getData()); byte flag; byte nbrPlane; diff --git a/viewer-terminal/viewTerm.jar b/viewer-terminal/viewTerm.jar index af0702d73563ba28d506b35025ce3613d0482170..5dafac4bbe05a96a20f145b11687d99b7a57167c 100644 GIT binary patch delta 2185 zcmV;42zK|{P2x`tP)h>@6aWYa2mrBTq>&AV19w`ak(Me0rDCM9!_@-=rDCMBn*<{U z1Epf5lfeoo1Epf5v+N261p}pGq_g!8y#@oNVx+UR7PJHdGh?KaY#TIx`+Hku9sj&- zl9Qxomv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