logo       
Google Custom Search
    AddThis Social Bookmark Button

poe::stage and keeping a stage: msg#00023

Subject: poe::stage and keeping a stage
I've started doing this:

        $self->{req}{echo_request} = POE::Request->new(
            stage     => POE::Stage::Echoer->new(),  # <== create stage on the 
fly
            method    => "echo",
            on_echo   => "got_echo",
            args      => {
                message => "request " . $self->{req}{i},
            },
        );

I don't store the stage anywhere, I just keep the request, since this is what I 
actually care about.

Is there a contra-indication to this?







Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>