in reply to Printing to all clients on a socket from a child process
Given that the child won't be able to 'see' new client connections to the parent, I think the best option is to place the keep-alive function in the parent and dispense with the child process. Even if you could share sockets between the parent and child which is possible, but tricky), it complicates your protocol since you don't want writes from the parent and child to interfere with each other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Printing to all clients on a socket from a child process
by Fredde87 (Initiate) on Mar 11, 2008 at 16:56 UTC | |
by pc88mxer (Vicar) on Mar 11, 2008 at 21:32 UTC |