Nacef LABIDI
2008-07-03 13:56:52 UTC
Hi there,
I want to develop a simple client/server application. My server has to
handle multiple clients connection and I want it to keep a list of
connected clients. On the client side I want to be able to send a
command from a client to the server which will broadcast it to the other
connected clients. As far as I have read, I saw in the ScreenThief demo
that it is using a TThreadList in which the connected threads are
registered but as I am using Indy10 The ServerConnect event handler does
not provide a TidPeerThread as a parameter but a TidContext. So what's
the solution in this case. Also I have read that the server cannot
explicitly send a command to a client so how can I pass the received
command back to the other clients.
I am using this mechanism in my application to allow my different
clients to update their state each time that one of the client's state
changes.
Has anyone an idea on how to implement that ?
Thanks
Nacef
I want to develop a simple client/server application. My server has to
handle multiple clients connection and I want it to keep a list of
connected clients. On the client side I want to be able to send a
command from a client to the server which will broadcast it to the other
connected clients. As far as I have read, I saw in the ScreenThief demo
that it is using a TThreadList in which the connected threads are
registered but as I am using Indy10 The ServerConnect event handler does
not provide a TidPeerThread as a parameter but a TidContext. So what's
the solution in this case. Also I have read that the server cannot
explicitly send a command to a client so how can I pass the received
command back to the other clients.
I am using this mechanism in my application to allow my different
clients to update their state each time that one of the client's state
changes.
Has anyone an idea on how to implement that ?
Thanks
Nacef