From 97aedc9ba5f734ce17149e604781a0eaf9ca414a Mon Sep 17 00:00:00 2001 From: ElyesKhama Date: Thu, 14 Dec 2017 19:01:47 +0100 Subject: [PATCH] dernier --- src/SendMessage.java | 2 +- src/ThreadReceive.java | 2 +- src/ThreadSend.java | 2 +- src/User.java | 8 ++------ 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/SendMessage.java b/src/SendMessage.java index dd724d5..cfa5816 100644 --- a/src/SendMessage.java +++ b/src/SendMessage.java @@ -1,4 +1,4 @@ -import java.io.IOException; +import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; diff --git a/src/ThreadReceive.java b/src/ThreadReceive.java index 5723f70..dfe086c 100644 --- a/src/ThreadReceive.java +++ b/src/ThreadReceive.java @@ -1,4 +1,4 @@ -import java.io.IOException; +import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.util.HashMap; diff --git a/src/ThreadSend.java b/src/ThreadSend.java index b8ddf75..9ecaaff 100644 --- a/src/ThreadSend.java +++ b/src/ThreadSend.java @@ -1,4 +1,4 @@ -import java.io.IOException; +import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; diff --git a/src/User.java b/src/User.java index 3e7754d..a524527 100644 --- a/src/User.java +++ b/src/User.java @@ -1,4 +1,4 @@ -import java.io.IOException; +import java.io.IOException; import java.net.*; import java.util.ArrayList; import java.util.Date; @@ -31,7 +31,7 @@ public User(String pseudo){ System.out.println("J'ai crée un utilisateur ; son pseudo est : " + pseudo ); Thread threadSend = new ThreadSend("thread send", this); - threadSend.start(); + // threadSend.start(); Thread threadReceive = new ThreadReceive("thread receive", this); threadReceive.start(); @@ -65,8 +65,4 @@ public HashMap getListUser(){ public void setListUser(String pseudo, String ip){ this.listUser.put(pseudo, ip); } - - - - } \ No newline at end of file