POE::Stage 0.02_00
Sponsored Links
POE::Stage 0.02_00 Ranking & Summary
File size:
0.048 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
855
Date added:
2007-06-21
Publisher:
Rocco Caputo
POE::Stage 0.02_00 description
POE::Stage is a base Perl class for message-driven objects.
SYNOPSIS
#!/usr/bin/env perl
{
package App;
use POE::Stage::App qw(:base);
sub on_run {
print "hello, ", my $arg_whom, "!n";
}
}
App->new()->run( whom => "world" );
exit;
POE::Stage is a set of base classes for message-driven objects. It cleanly implements standard patterns that have emerged from years of working with POE and POE::Component modules.
As I hope the name implies, POE::Stage objects encapsulate discrete steps, or stages, of a larger task. Eventually they come together to implement programs.
For example, HTTP requests are performed in four or so distinct stages: 1. The servers address is resolved. 2. The client establishes a connection to the server. 3. The client transmits a request. 4. The client receives a response.
By design, POE::Stage promotes the decomposition of tasks into multiple, smaller stages. If these stages are generic enough, new tasks may be handled by reusing them in different configurations.
The hypothetical HTTP client might be a single stage composed of three smaller ones: A DNS resolver stage, which accepts DNS requests and returns DNS responses. A TCP client connection factory, which takes socket endpoint descriptions and other parameters, and eventually returns established connections. Finally, there would be an HTTP protocol stage that uses established connections to send requests and parse responses.
These stages would be encapsulated by a higher-level HTTP client stage. This would accept HTTP requests and return HTTP responses after performing the necessary steps to gather them.
This will sound familiar to anyone working with objects.
These objects are asynchronous and message-driven, however. The base message class, POE::Request, and its subclasses, implement a standard request/response interface between POE::Stage objects. Where possible, these messages attempt to mimic simpler, more direct call/return syntax, albeit asynchronously. POE::Stage also provides a powerful closure-based system for maintaining request and response state, so you dont have to.
SYNOPSIS
#!/usr/bin/env perl
{
package App;
use POE::Stage::App qw(:base);
sub on_run {
print "hello, ", my $arg_whom, "!n";
}
}
App->new()->run( whom => "world" );
exit;
POE::Stage is a set of base classes for message-driven objects. It cleanly implements standard patterns that have emerged from years of working with POE and POE::Component modules.
As I hope the name implies, POE::Stage objects encapsulate discrete steps, or stages, of a larger task. Eventually they come together to implement programs.
For example, HTTP requests are performed in four or so distinct stages: 1. The servers address is resolved. 2. The client establishes a connection to the server. 3. The client transmits a request. 4. The client receives a response.
By design, POE::Stage promotes the decomposition of tasks into multiple, smaller stages. If these stages are generic enough, new tasks may be handled by reusing them in different configurations.
The hypothetical HTTP client might be a single stage composed of three smaller ones: A DNS resolver stage, which accepts DNS requests and returns DNS responses. A TCP client connection factory, which takes socket endpoint descriptions and other parameters, and eventually returns established connections. Finally, there would be an HTTP protocol stage that uses established connections to send requests and parse responses.
These stages would be encapsulated by a higher-level HTTP client stage. This would accept HTTP requests and return HTTP responses after performing the necessary steps to gather them.
This will sound familiar to anyone working with objects.
These objects are asynchronous and message-driven, however. The base message class, POE::Request, and its subclasses, implement a standard request/response interface between POE::Stage objects. Where possible, these messages attempt to mimic simpler, more direct call/return syntax, albeit asynchronously. POE::Stage also provides a powerful closure-based system for maintaining request and response state, so you dont have to.
POE::Stage 0.02_00 Screenshot
POE::Stage 0.02_00 Keywords
POE
HTTP
Stage 0.02
DNS
Perl class
Base Perl
objects
0.02
client
base
class
Perl
POE::Stage 0.02_00
POEStage
POE::Stage 0.02_00
Libraries
Bookmark POE::Stage 0.02_00
POE::Stage 0.02_00 Copyright
WareSeeker periodically updates pricing and software information of POE::Stage 0.02_00 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::Stage 0.02_00 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
objects that reflect light
myspace falling objects
objects in motion
world baseball classic
objects of my affection lyrics
objects for the sims 2
hidden objects
objects in the rear view mirror may appear closer than they are
perl classic unit frames
objects d'art
business objects
objects in space
objects in the sky
perl classic
sims 2 objects
solid objects
objects for sims 2
objects of desire
Related Software
PObject is a base class for perl objects, takes the irritation out of creating properties for objects. Free Download
Puppet::Any provides a common base class for lab development tools. Free Download
Class::Agreement is a Perl module that add contracts to your Perl classes easily. Free Download
Class::AbstractLogic is a Perl module to handle Logic Abstractions. Free Download
Class::CGI is a Perl module to fetch objects from your CGI object. Free Download
PLJava is Perl module that will embed Perl into Java. Free Download
Class::Container is a Perl module with Glues object frameworks together transparently. Free Download
Class::DataStore is a Perl module for generic OO data storage/retrieval. Free Download
Latest Software
Popular Software
Favourite Software