I've looked at a ton of examples out there for client/server side programming and so far they are all very similar with the exceptions of GUI based server applications. For example, I am writing a server side program on an IDE. Once I start the socket and it starts listening, the console of the IDE is basically constantly executing, waiting for clients to connect to it. So with that in mind, my question is, "Is it possible to have user input while the server is running from the server side?" What I am asking is if it is possible to have user input in the console while the server is running such as typing in "QUIT" so that the server can close it's sockets. I have yet to see this possible anywhere except on a GUI where a JButton helps stop the server and restarts it.
So far, what I have is a multi thread server, and two types of clients that can connect to it. One client (there will exist only one of this client) can control the server state and once the server's state changes, that is when the second client (there can be as many of these clients) can connect to the server and enter their input that will essentially be stored on the server. I looked everywhere to see if I could potentially turn the first client and fuse it with the server but to no success. Thanks in advance for any replies. Please let me know if the question doesn't make sense. I'll try to re word it. =)