Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Data::AMF::Remoting(3)User Contributed Perl DocumentatioData::AMF::Remoting(3)

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

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.

perl v5.24.1			  2010-07-21		Data::AMF::Remoting(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | METHODS | ACCESSORS | AUTHOR | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Data::AMF::Remoting&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help