I'm writing a small client application to communicate with a server. I open a socket between my client and the server and can read anything that goes out from the server with a BufferedReader. This is read in a thread. However, when I write on the socket using a BufferedReader, nothing happens ! No exception but not any server response (and it should have a server response) Here is my code:
socketWritter.write(message);
socketWritter.write("\n");
System.out.println(socketWritter.toString());
socketWritter.flush();
My socket is correctly open and mu BufferedWriter correctly initialized :
new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()))
I have no idea why this doesn't work ?? Any help would be great ! Regards