Commit b058318f authored by Thibault Chiche's avatar Thibault Chiche
Browse files

ajout log joingameresponse

parent cb695a35
......@@ -222,10 +222,12 @@ public class ComFacade {
for (Inet4Address ip : kIpCtrl.getHashMap().values()) {
Sender os = new Sender(ip.getHostAddress(), kIpCtrl.getPort(), m_joingameresponse);
new Thread(os).start();
System.out.println("send success joinGame");
}
} else {
Sender os = new Sender(kIpCtrl.getHashMap().get(id).getHostAddress(), kIpCtrl.getPort(), m_joingameresponse);
new Thread(os).start();
System.out.println("fail joinGame");
}
}
}
......@@ -50,7 +50,7 @@ public class Sender implements Runnable {
out = new ObjectOutputStream(socket.getOutputStream());
request.setIpSender(kIpCtrl.getMyInetAddress());
out.writeObject(request);
System.out.println("message sent" + request.getClass().toString());
System.out.println("message sent" + request.getClass().toString());
out.close();
socket.close();
} catch (UnknownHostException e) {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment