Main > Programming > Libraries >

POE::Session 0.9989

POE::Session 0.9989

Sponsored Links

POE::Session 0.9989 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.35 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 919
Date added: 2007-04-18
Publisher: The POE authors

POE::Session 0.9989 description

POE::Session is a Perl module for event driven abstract state machine.

SYNOPSIS

# Import POE::Session constants.
use POE::Session;

POE::Session->create(

# Inline or coderef states.
inline_states => {
state_one => &coderef_one,
state_two => sub { ... },
},

# Plain and mapped object states.
object_states => [
$object_one => [ state_three, state_four, state_five ],
$object_two => { state_nine => method_nine },
],

# Plain and mapped package states.
package_states => [
$package_one => [ state_six, state_seven, state_eight ],
$package_two => { state_ten => method_ten },
],

# Parameters for the sessions _start state.
args => [ argument_zero, argument_one, ... ],

# Initial options. See the option() method.
options => %options,

# Change the sessions heap representation.
heap => [ ],
);
Other methods:
# Retrieve a sessions unique identifier.
$session_id = $session->ID;

# Retrieve a reference to the sessions heap.
$session_heap = $session->get_heap();

# Set or clear session options.
$session->option( trace => 1, default => 1 );
$session->option( trace );

# Create a postback, then invoke it and pass back additional
# information.
$postback_coderef = $session->postback( $state_name, @state_args );
$postback_coderef->( @additional_args );

# Or do the same thing synchronously
$callback_coderef = $session->callback( $state_name, @state_args );
$retval = $callback_coderef->( @additional_args );

POE::Session combines a runtime context with an event driven state machine. Together they implement a simple cooperatively timesliced thread.
Sessions receive their timeslices as events from POE::Kernel. Each event has two fields, a state name and a session identifier. These fields describe the code to run and the context to run it in, respectively.

Events carry several other fields which will be discussed in the "Predefined Event Fields" section.

States are re-entrant since they are invoked with their runtime contexts. Although its not usually necessary, this re-entrancy allows a single function to be bound to several different sessions, under several different state names.
As sessions run, they post new events through the Kernel. These events may be for themselves or other sessions, in which case they act as a form of inter-session communications. The Kernel can also generate events based on external conditions such as file activity or the passage of time.

POE provides some convenient built-in states with special meanings. They will be covered later on in the "Predefined States" section.

POE::Session 0.9989 Screenshot

Advertisements

POE::Session 0.9989 Keywords

Bookmark POE::Session 0.9989

Hyperlink code:
Link for forum:

POE::Session 0.9989 Copyright

WareSeeker periodically updates pricing and software information of POE::Session 0.9989 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of POE::Session 0.9989 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
PHP::Session is a Perl module to read / write PHP session files. Free Download
PHP::Session::DB is a Perl module to read / write PHP sessions stored in data bases. Free Download
POE::Session::GladeXML2 is a Perl module that can emit POE events for Gtk2 callbacks. Free Download
Perl Object Environment is a Perl multitasking framework that lends itself to networking software. Free Download
POE::Session::Cascading is a Perl module with stack-like POE sessions. Free Download
POE::Exceptions is a POE class for handling exceptions. Free Download
POE::Filter::FSSocket is a POE filter that parses FreeSWITCH events into hashes. Free Download
POE::Kernel is an event driven threaded application kernel in Perl. Free Download