Log in

View Full Version : Simple Threaded TCP Server


MohammadAdib
19-01-2012, 16:58
In case any teams need a client server solution for their robot, I just wrote and tested this very simple code for a threaded TCP server template using Java. The server is fully threaded and can read input from incoming clients. There is no limit to how many clients can connect. It uses a thread to search for new clients and once a client connects another thread is started for reading input from that client's socket.

Feel free to use the code as it is a template, but please do not remove the credit comment on the top

Download the file from below: