server-client; client sends a username to the server.
I have reformed my server code, but the only thing that I am not sure about is how the server would get a selected name from the client?
would I just have to create a protocol and states for the accounts?
say the person was new and types name in to use from the client, how could I get the client to send the name to the server?
check if the name exists
if true go to state 3 and log in
state 2 create account..
by using bufferedreader and writer, but is there another more efficient way?