Multithreaded pipe broadcast RRS feed

  • Question

  • Hi, I have a problem using multithreaded named pipes. The project is a client-server app and I have some commands that a client can ask, such as echo, message, broadcast, etc. The code for client and server are similar to these ones:

    Now, I don't really know how to broadcast something to all clients (+ that I can't make an interaction between let's say 2 clients). If I read/write something from a thread created in server, it will only be writable/readable from the only client connected to that instance of the pipe. I hope I described well enough the problem. Can you tell me how to broadcast something from a instance to all the clients (I think I can handle the client-client interaction after that)? Thank you!

    Tuesday, January 30, 2018 2:47 PM