Greetings,
First I'd like to say that this is a very nice forum and it already helped me alot with some other projects. But now to the problem:
I wrote a server that is based on the code found here . This server allows me to handle multible clients/connections at the same time.
Now I need to add an event (for example a key is pressed), which then sends a specific message to all clients that are actually connected. The problem here is that I dont know how to do that, since there are multible threads running the same code but with a different client.
Since the control that sends the event is in the main thread, it has something to do with cross-thread operations.
Does anyone have an idea?
Thanks in advance
First I'd like to say that this is a very nice forum and it already helped me alot with some other projects. But now to the problem:
I wrote a server that is based on the code found here . This server allows me to handle multible clients/connections at the same time.
Now I need to add an event (for example a key is pressed), which then sends a specific message to all clients that are actually connected. The problem here is that I dont know how to do that, since there are multible threads running the same code but with a different client.
Since the control that sends the event is in the main thread, it has something to do with cross-thread operations.
Does anyone have an idea?
Thanks in advance
Comment