Hi I have implemented socket channel for client server application.
That program works fine when i am sending data of 10000 characters but when I am sending data of more than 50000 characters, then that program did not work fine.
For sending data I am using
String message = "my own data"+"\n"
ByteBuffer buf = ByteBuffer.wrap(message.getBytes());
And for recieving tha data I am using
BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
My server is in socket channel and client is simple socket.