users@grizzly.java.net

Sample Code for TCP Server and Client

From: Debasish Sahu <debasish.sahu_at_gmail.com>
Date: Mon, 12 May 2008 23:07:50 +0530

Hi All,

I am desperately looking for an TCP Server and client example code which
does the following

1. Client writes a text message say Hello to the Server listening on port
say 9090.
2. Server reads the messages send by the client and prints it.
3. Server writes back to the Client by appending some text to the received
message
4. Client receives the message from the server and prints it.

Any help is greatly appreciated.

-- 
Thanks and Warm Regards
Debasish Sahu