Gonzalo Garramuno
2013-10-28 15:07:46 UTC
I have an application that acts as both a server and a client. There
can be multiple clients and the commands to control the application come
both from the server and from the clients. The application works fine
when the server and a single client talk to each other.
My problem is that I do not know how to control the other clients from
one of the clients, as the commanding client does not know about all
other clients. The server knows all clients but it does not know which
of the clients sent the request to distribute to all clients, so it ends
up re-sending the request to the client that sent the command in the
first place.
Hopefully, this all makes sense and there's an easy workaround.
can be multiple clients and the commands to control the application come
both from the server and from the clients. The application works fine
when the server and a single client talk to each other.
My problem is that I do not know how to control the other clients from
one of the clients, as the commanding client does not know about all
other clients. The server knows all clients but it does not know which
of the clients sent the request to distribute to all clients, so it ends
up re-sending the request to the client that sent the command in the
first place.
Hopefully, this all makes sense and there's an easy workaround.