Engi wrote: > Hi, > > In my program, a TWSocketServer in thread 'A' receives commands > (queries) >> from clients. > The thread 'A' post this commands to another thread 'B' which execute > them. Later, thread A receives an asynchronous answer from thread 'B'. > How can the thread A could transmits this answer to the good client > (the one which send query) ? > Is there unik identifier for each client IP ?
You can use the object reference or the Sender to identify client objects. Before sending the answer check if the client is still in the client list, AND also don't forget to identify each client thru a unique, custom ID since the same address _may already be assigned to a newly connected client if the destination client has disconnected while the thread processed the task. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Engi -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be