quelques patch et logs

This commit is contained in:
marc barbier
2021-01-07 18:16:02 +01:00
parent 18f4788652
commit c3fec7d68b
6 changed files with 33 additions and 7 deletions
@@ -47,6 +47,7 @@ public class Communication {
* @param message
*/
public void send(String message) throws IOException {
Log.i("sending",message);
clientOut.writeObject(message);
}
@@ -65,7 +66,9 @@ public class Communication {
*/
public String recieve(){
try {
return (String) clientIn.readObject();
String message = (String) clientIn.readObject();
Log.i("recived",message);
return message;
} catch (ClassNotFoundException e) {
e.printStackTrace();
//on crash