If you have a very limited number of messages that could be passed, you 
could use signals.  For example, child 1 would send a signal to the parent, 
and the parent would then signal all of the other children.

If you have more complex messages that need to be passed, that won't work, 
of course.

Dan Hardiker wrote:

> Hi,
> 
> Thanks Daniel for your excellent input. I have managed to create a forking
> socket handler, although I am now approched by a new issue. How do I get
> the sockets to communication to each other?
> 
> There are several work arounds that I could implement but Im going out on
> a limb and hoping that there is some standard / normal way of doing this.
> Here is my situation:
> 
> I initate a parent process which creates a child when a client comes
> along. Another client comes along and another child is created.
> 
> I can process and parse the input from the children individually but when
> upon a certain command being sent by child 1, I want *all* the children to
> be issued a command.
> 
> How would I broach this? I need any child to be able to communicate with
> any (or all) other children.
> 
> Thanks in advance
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to