1Data::AMF::Remoting(3)User Contributed Perl DocumentationData::AMF::Remoting(3)
2
3
4

NAME

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

SYNOPSIS

9           use Data::AMF::Remoting
10
11           my $remoting = Data::AMF::Remoting->new(
12               source => $data,
13               headers_handler => sub
14               {
15                   my @headers = @_;
16
17                   # Do authenticate or something.
18
19                   return @headers;
20               },
21               message_handler => sub
22               {
23                   my $message = shift;
24
25                   # Call action using target_uri and value.
26
27                   my ($controller_name, $action) = split '\.', $message->target_uri;
28
29                   $controller_name->require;
30                   my $controller = $controller_name->new;
31
32                   return $controller->$action($message->value);
33               }
34           );
35           $remoting->run;
36
37           my $data = $remoting->data;
38

DESCRIPTION

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

SEE ALSO

43       Data::AMF
44

METHODS

46   run
47       Handle AMF Packet data.
48

ACCESSORS

50   data
51       return AMF Data
52

AUTHOR

54       Takuho Yoshizu <seagirl@cpan.org>
55
57       This program is free software; you can redistribute it and/or modify it
58       under the same terms as Perl itself.
59
60       The full text of the license can be found in the LICENSE file included
61       with this module.
62
63
64
65perl v5.38.0                      2023-07-20            Data::AMF::Remoting(3)
Impressum