GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATA::AMF::REMOTING (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



    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

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

SEE ALSO

Data::AMF

METHODS

    run

Handle AMF Packet data.

ACCESSORS

    data

return AMF Data

AUTHOR

Takuho Yoshizu <seagirl@cpan.org>

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATA::AMF::REMOTING (3) 2010-07-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.