Go to Post It's a club if you have a bunch of people who hang out and do nothing - It's a team if all you all work together and cooperate to win. - Tytus Gerrish [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2012, 16:58
MohammadAdib MohammadAdib is offline
Outside-of-the-box thinker
FRC #0948 (NRG948)
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Bellevue WA
Posts: 7
MohammadAdib is an unknown quantity at this point
Wink Simple Threaded TCP Server

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:
Attached Files
File Type: java TCPServerTemplate.java (2.5 KB, 122 views)

Last edited by MohammadAdib : 19-01-2012 at 17:01.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi