GeeCON Prague 2014*
The moose likes Sockets and Internet Protocols and the fly likes Socket Communication. Read single line by line from Client side. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket Communication. Read single line by line from Client side." Watch "Socket Communication. Read single line by line from Client side." New topic
Author

Socket Communication. Read single line by line from Client side.

Srivatsa Sri
Greenhorn

Joined: Aug 28, 2012
Posts: 4

Hi everybody,

I am developing a console based login. But i am struck with the following error in code here. I will explain it briefly : As said earlier, a console based login which will check the user name, then password. I am not able to send it single line by line, first username and next password. My code :

Server.java


Client.java


Please help me with this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Socket Communication. Read single line by line from Client side.