multi send
Hi
I''m using bsd sockets for my app. I have forked like this:
clientSocket = accept(.....);
pid = fork();
after that i want to do a send(...); to all my connected clients. How do I do that? I can''t do a send(clientSocket, .....); because it will only go to that fork.
Any suggestions?
Don''t fork.
Or keep a pipe (or socket) between your client and the process calling accept(), and have that master process do the sending to all clients.
But I''d suggest not forking.
Or keep a pipe (or socket) between your client and the process calling accept(), and have that master process do the sending to all clients.
But I''d suggest not forking.
enum Bool { True, False, FileNotFound };
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement