I am sending several messages in my application from client to server one of them is “\r\n.\r\n” how can the server identify this message between others?
I have used equals() method but it did not work:
is = new BufferedReader(new InputStreamReader(socket
.getInputStream()));
String st = is.readLine();
if(st.equals("\r\n.\r\n"))
// ........
1 Answer