This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I'm making a chat program and I want the user to have to login. I figure the username/password would be sent to the server where it will check a file to see if that username/password is in the file. If so let them login. I differentiated a login with username/password from a message being sent by the first couple letters of the string being something like 'login1234' or something. The obvious downside is if a user sends a message that begins with 'login1234'
Okay I am still working on this login thing for the chatsoftware. I have the client sending the login reguest, the server authenticating it, but I cannot seem to figure out how to get the server to send an "accpeted" response. Here my fill code.
got that part working. Now I'm going to have it search through a file to the username/password. Then send to everyone(all the clients) the new user that connected so it can be added to the JList.