Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Communicate with preforked child from Net::Server::PreFork. Is it possible?

by unlinker (Monk)
on Jul 16, 2012 at 23:00 UTC ( #982098=perlquestion: print w/replies, xml ) Need Help??
unlinker has asked for the wisdom of the Perl Monks concerning the following question:

I am building an application where different clients connect to a server, register themselves and wait for messages from other connected clients. I have seen and understood how to do this with Net::Server::Multiplex (in the example section). However I wanted to avoid a Multiplexed server to avoid blocking in a high traffic situation.

Is it possible for an instance of Net::Server::PreFork to communicate with the children it spawns. I know that communication can be initiated in the reverse direction (forked-child to server) by setting child_communication. I wanted to know if the server could send the child a message without it being initiated by the client.

Thank you.

  • Comment on Communicate with preforked child from Net::Server::PreFork. Is it possible?
  • Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://982098]
Approved by ww
[Tanktalus]: Wow, given the time separation of marioroy's oatmeal cookies and Disciplulus' response, I'm amazed that marioroy responded :)
[Discipulus]: no no seriously, redss posed a good question in the right moment, and you gave as always wonderful answers
[Discipulus]: Tanktalus my comment was about how to fork & join in tk?
[marioroy]: Oh, I've might of missed Discipulus's earlier response. I had gone to bed.
[Tanktalus]: ah, I don't even have the perlmonks site open in my browser :)
Tanktalus is chatting through his cbstats application :)
[marioroy]: Perl is so much fun.
[Discipulus]: Tanktalus i recently started a Meditation about marioroy's MCE suit of modules, but is even better to see a practical question answered than responses to my meditation
[Discipulus]: good night mario!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-04-23 19:47 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.