Pcore::AE::Handle - AnyEvent::Handle subclass with proxy support
Refer to the AnyEvent::Handle for the other base class attributes.
Connect timeout in seconds.
proxy => [ 'socks5', 'connect://127.0.0.1:8080?socks5' ],
Proxy to use. First argument - is a preferred proxy type. Second argument - Pcore::Proxy object, or HashRef, that will be passed to the Pcore::Proxy constructor.
on_proxy_connect_error => sub ( $h, $message ) { return; },
Error callback, called in the case of the proxy connection error.
Fetch stored connection from the cache. Return undef if no cached connections for current id was found.
undef
Refer to the AnyEvent::Handle for the other base class methods.
Store connection to the cache.
!!! WARNING !!! - on_error, on_eof, on_read and timeout attributes will be redefined when handle is stored. You need to restore this attributes manually after handle will be fetched from cache.
on_error
on_eof
on_read
timeout
Defaul cache timeout is 4.
4
AnyEvent::Handle, AnyEvent::Socket, Pcore::Proxy
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.