I want to send a command to the server and find out if I got a response.
I am currently using the BufferedReader readline() function, which blocks until there is a response from the server, but all I want to do is check that there is actually a response from the server.
I tried using ready() or reset() to avoid this block, but that does not help.
This causes my program to get stuck waiting for a server response, which never happens. InputStreamReader seems to do the same, in my understanding of things.
Other questions I found here on this question did not answer my question, so please, if you answer my question, it will be great.
source share