in reply to Fastest way to talk to a perl daemon

Unix pipe is the most primitive and often the best method of ipc. I just posted, at Many-to-One pipe, a demo taking advantage of file descriptor duplication in fork to allow many children to talk to one over a pipe.

Update: suaveant, you won't be able to use that for processes which are not forked from a common parent. I was picturing a server daemon forking a helper process, possibly with another pipe back to the parent, and then creating little connection servers which all feed the helper.

After Compline,
Zaxo

  • Comment on Re: Fastest way to talk to a perl daemon

Replies are listed 'Best First'.
Re: Re: Fastest way to talk to a perl daemon
by suaveant (Parson) on Aug 07, 2002 at 14:31 UTC
    Although, since the calls coming in are from other process groups, the only real way to do this would be either a file pipe, or to open the pipe directly somehow using file handle passing, I believe. I know pipes are good for parents and children, but how do they really work for talking to a daemon's children?

                    - Ant
                    - Some of my best work - (1 2 3)