Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: POE: Events and Messages

by rcaputo (Chaplain)
on Oct 20, 2004 at 01:42 UTC ( #400734=note: print w/ replies, xml ) Need Help??


in reply to POE: Events and Messages

The chat server recipe in POE's cookbook contains a very simple example of publish/subscribe within a single process. I recommend POE::Component::IKC if you want to publish and subscribe to services between separate processes.

As I see it, the difference between events and messages is one of scale. Events are essentially messages telling a program that some fairly small thing has occurred. At POE's lowest levels, it generates events to indicate when sockets are ready to be read from or written to. It implements multiple timers with notification as events. It does a bunch of other things, but they're outside the scope of this reply. :)

Messages on the other hand are high-level notifications. For example, POE::Component::Server::SOAP notifies programs when entire SOAP requests have arrived. It accepts SOAP responses and handles the gory details of shipping them back to clients.

-- Rocco Caputo - http://poe.perl.org/


Comment on Re: POE: Events and Messages

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-08-21 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (138 votes), past polls