I am trying to connect to the POP server through Sockets in Java. I did the following code to run a LIST command to list all the emails from the server. But I don\'t know wh
readLine() won't return until it's read a carriage return or a line feed, which is what you normally get when you read from a terminal or a text file.
I wouldn't be surprised if the POP server doesn't actually tack \r\n on the end of its messages. Try read() instead.