Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Dealing with multiple processes?

by fisher (Priest)
on Aug 05, 2011 at 15:49 UTC ( #918811=note: print w/ replies, xml ) Need Help??


in reply to Dealing with multiple processes?

I think you need general dispatcher and spawned handlers for a particular call.

In main loop, receive packet, if it is a new call, spawn a handler, register it (make a link between call and handler) and give him this packet. If it is a packet for registered call, give it to particular handler. Otherwise just drop it.

Handlers will decode packets in context of current session; if session ends, handler exits.


Comment on Re: Dealing with multiple processes?
Re^2: Dealing with multiple processes?
by bigmoose (Acolyte) on Aug 05, 2011 at 15:53 UTC

    Ahaha!

    handlers are the concept I was looking for.. I think

    Thanks wise one ^_^

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://918811]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2015-07-02 21:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (45 votes), past polls