Data::AMF::Remoting - handle Flash/Flex RPC.


Data-AMF documentation  | view source Contained in the Data-AMF distribution.

Index


NAME

Top

Data::AMF::Remoting - handle Flash/Flex RPC.

SYNOPSIS

Top

    use Data::AMF::Remoting

    my $remoting = Data::AMF::Remoting->new(
        source => $data,
        headers_handler => sub
        {
            my @headers = @_;

            # Do authenticate or something.

            return @headers;
        },
        message_handler => sub
        {
            my $message = shift;

            # Call action using target_uri and value.

            my ($controller_name, $action) = split '\.', $message->target_uri;

            $controller_name->require;
            my $controller = $controller_name->new;

            return $controller->$action($message->value);
        }
    );
    $remoting->run;

    my $data = $remoting->data;

DESCRIPTION

Top

Data::AMF::Remoting provides to handle Flash/Flex RPC.

SEE ALSO

Top

Data::AMF

METHODS

Top

run

Handle AMF Packet data.

ACCESSORS

Top

data

return AMF Data

AUTHOR

Top

Takuho Yoshizu <seagirl@cpan.org>

COPYRIGHT

Top


Data-AMF documentation  | view source Contained in the Data-AMF distribution.