Showing login screen and sending username and password to be authenticated
I am sending to the server the login string "#loginusername/password
It does not compile, doee not like line msg = reader.readline();
carey brown wrote:Try 'readLine' (upper-case L)
carey brown wrote:You need two additions: 1) a way for the server to pass back to a specific client if their login attempt passed or failed, 2) a loop in the client to keep prompting until a 'pass' message is received.
the success or failure of logging in is passed back to the client right now. I just need to work on the loop. Thanks.
I am only posting the client code, the server code is that same as posted earlier
First the client code that works
Now the client code that does not work
Now the server code
And the other server code
at least I hope this code works, I was trying to use Netbeans to figure this out and seemed to have deleted the code.