NAME
Net::Shadowsocks::Server - Shadowsocks protocol server module.
VERSION
version 0.7.0
SYNOPSIS
Shadowsocks protocol server module.
The following encryption methods are supported:
rc4-md5 rc4-sha aes-128-cbc aes-128-cfb aes-128-ofb aes-256-cbc aes-256-cfb aes-256-ofb
Experimental support of RC6 is also provided.
Experimental server TCP Fast Open is also supported if available on Mac OS X and Linux.
Please also note that both the stock libmcrypt and stock Mcrypt module do not export CTR mode, So the aes-128-ctr and aes-256-ctr method will not work out of box. You have to use this patched version of libmcrypt and Libmcrypt module from https://osdn.net/projects/mcrypt/ to get it to work.
NAME
Net::Shadowsocks::Server
=head1 VERSION
Version 0.7.0
METHODS
=cut
=pod
new
The C<new> constructor lets you create a new B<Net::Shadowsocks::Server> object.
So no big surprises there...
Returns a new B<Net::Shadowsocks::Server> or dies on error.
example use:
use Net::Shadowsocks::Server;
my $foo = Net::Shadowsocks::Server->new(
local_address => ' localhost ',
local_port => 1491,
password => ' 49923641 ',
server => ' jp . ssip . club ',
server_port => 23333,
method => 'rc6',
);
This is all you need to do. Take a look at server.pl under eg directory for a compelete example on how to
use the server module.
AUTHOR
Li ZHOU <lzh@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Li ZHOU.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.