AnyEvent::FlashSocketPolicy - Asynchronous socket policy file server for a flash socket connection.
use AnyEvent::FlashSocketPolicy; my $server = AnyEvent::FlashSocketPolicy->new( permitted_cross_domain_policies => 'master-only', domain => '*', to_ports => '5000', ); $server->run;
Or just like this.
% flash-socket-policy-server --domain-policy=master-only --domain='*' --to-ports=5000 &
AnyEvent::FlashSocketPolicy is a simple asynchronous socket policy file server with AnyEvent::Socket.
It is faster than adobe's one which using inetd, and flexibly customizable.
Create flash socket policy file server.
my $server = AnyEvent::FlashSocketPolicy->new(
permitted_cross_domain_policies => 'master-only',
domain => '*',
to_ports => '5000',
);
Available options are:
- permitted_cross_domain_policies
- domain
- to_ports
- port
- policy
Start the server.
- Any::Moose
- AnyEvent
- AnyEvent::Handle
- AnyEvent::Socket
- Getopt::Long
- Pod::Usage
- Text::MicroTemplate
- Try::Tiny
- Logging
- Exception handling
- Support reading existing files.
keroyonn keroyon@cpan.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.