Multi-client authentication server
I'm building a basic username-password authentication server to handle multiple clients. I have done this by spawning a new thread for each connection from the client. Now my problem is this:
If all the server has to do is print "Hello" messages at each client terminal,this approach works very well. But when the server has to take input from the client,such as the username and password,the client program freezes up. The server still goes on accepting new connections(i know this because i have put a println() statement which get executed at the server every time a client requests a connection). Can anyone help me out with this??