NAME

Net::Async::SOCKS - some degree of SOCKS5 proxy support in IO::Async

VERSION

Version 0.002

DESCRIPTION

Currently provides a very basic implementation of SOCKS_connect:

$loop->connect(
 extensions => [qw(SOCKS)],
 SOCKS_host => 'localhost',
 SOCKS_port => 1080,
 host => '1.2.3.4',
 port => 80,
)->then(sub {
 my ($stream) = @_;
 $stream->write("GET / HTTP/1.1...");
})

METHODS

The following methods are added to IO::Async::Loop but are not intended to be called directly - use the extensions feature instead.

SOCKS_connect

Establish a TCP connection via SOCKS5 proxy. Only allows IPv4 host and numerical port for now.

AUTHOR

Tom Molesworth <cpan@perlsite.co.uk>

LICENSE

Copyright Tom Molesworth 2014. Licensed under the same terms as Perl itself.