i need guidance to develope a pgm for msg transfering using tcp.i alredy developed this for single client and single server but i need to transfer msg from one client to another via single server.

Insert a standardized message header with from to fields. The server receives the message see's the Id for what client to relay the message to and resends it to that contact leaving all fields intact. The recipient sees the message sees what client it was from and replies the same way. If message is meant for the host then the recipient Id in the message has the Id belonging to the host!