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  -  FCGI::ASYNC (3)

.ds Aq ’

NAME

"FCGI::Async" - use FastCGI with IO::Async

CONTENTS

SYNOPSIS



 use FCGI::Async;
 use IO::Async::Loop;

 my $loop = IO::Async::Loop->new();

 my $fcgi = FCGI::Async->new(
    loop => $loop
    service => 1234,

    on_request => sub {
       my ( $fcgi, $req ) = @_;

       # Handle the request here
    }
 );

 $loop->loop_forever;



DESCRIPTION

This subclass of Net::Async::FastCGI provides a slightly different API; where it can take an argument containing the IO::Async::Loop object, rather than be added as Notifier object within one. It is provided mostly as a backward-compatibility wrapper for older code using this interface; newer code ought to use the Net::Async::FastCGI interface directly.

CONSTRUCTOR

CW$fcgi = FCGI::Async->new( CW%args )

Returns a new instance of a FCGI::Async object.

If either a handle or service argument are passed to the constructor, then the newly-created object is added to the given IO::Async::Loop, then the listen method is invoked, passing the entire %args hash to it.

If either of the above arguments are given, then a IO::Async::Loop must also be provided:
loop => IO::Async::Loop A reference to the IO::Async::Loop which will contain the listening sockets.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 FCGI::ASYNC (3) 2011-01-01

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