Hello, I made a simple server/client communication, through sockets and using forks on each connection.
It's supposed to work like a chat, but I couldn't find a way for sending the message to all the connected clients, I can only write on the open socket in that child.
I searched around, but I could only found libs and wrappers, that make things messy.
It would be good if I can treat multiple in/outputs without waiting between them.
You have a main class/form whatever, from where you fork all connections right ? You should be able to loop through all open processes and send the message on each one. You do have handles to those in your main right ?