Quote:
Originally Posted by Freaky Chris
Perhaps you would be better of having the main class run an infinite loop accepting connection from clients. Once it has recieved a client from socket.accept() the you can pass that to a new Threaded class that deals with all of the input and outputs to that socket.
|
It is already doing that lol. Recheck the code. Main has a while loop that is always true so that it can connect to multiple clients. A new thread is spun off for each client and the run method is invoked.