For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > December 2007 > Making a Component









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Making a Component
Alejandro Imass

2007-11-16, 7:31 pm


All I have to do is return a session? and that's it?

use POE;
use POE::Component::MyAwsomeComponent;

POE::Component::MyAwsomeComponent->new();

and return a session, and that's it?


perldoc POE::Component doesn't offer much more, and from the code of
other components that seems to be about it. I can't find a component
how-to anywhere else, so I am assuming it's as simple as that, but I'm
probably wrong, right?


Matt Sickler

2007-11-16, 7:31 pm

Not even that!
Components are very generic, high level abstract concepts. You can
implement any interface you want [as long as its documented].
Some will return POE::Session objects, some will return objects, some
return Session ID's to post() to, etc.
It depends on the implementation and the requirements.

On Nov 16, 2007 6:39 PM, Alejandro Imass <aimass@corcaribe.com> wrote:
>
> All I have to do is return a session? and that's it?
>
> use POE;
> use POE::Component::MyAwsomeComponent;
>
> POE::Component::MyAwsomeComponent->new();
>
> and return a session, and that's it?
>
>
> perldoc POE::Component doesn't offer much more, and from the code of
> other components that seems to be about it. I can't find a component
> how-to anywhere else, so I am assuming it's as simple as that, but I'm
> probably wrong, right?
>
>

Alejandro Imass

2007-11-17, 8:23 am


Thanks for your prompt reply and clarifying this!


On Fri, 2007-11-16 at 18:43 -0600, Matt Sickler wrote:[color=darkred]
> Not even that!
> Components are very generic, high level abstract concepts. You can
> implement any interface you want [as long as its documented].
> Some will return POE::Session objects, some will return objects, some
> return Session ID's to post() to, etc.
> It depends on the implementation and the requirements.
>
> On Nov 16, 2007 6:39 PM, Alejandro Imass <aimass@corcaribe.com> wrote:

Potardder

2007-12-12, 5:55 pm

http://www.thetubebender.com/a?movie=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com