| 1 | package IO::Socket::Socks::Wrapped; | ||
| 2 | |||
| 3 | 7 | ▶ | no warnings 'redefine'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 7 | ▶ | use IO::Socket; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 7 | ▶ | use IO::Socket::Socks::Wrapper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 7 | our $VERSION = '0.16'; | |
| 8 | 7 | our $AUTOLOAD; | |
| 9 | |||
| 10 | sub new { | ||
| 11 | 15 | ▶ | my ($class, $obj, $cfg) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 15 | bless {orig => $obj, cfg => $cfg}, $class; | |
| 13 | } | ||
| 14 | |||
| 15 | sub AUTOLOAD { | ||
| 16 | 36 | ▶ | my $self = shift; |
|
Subroutine
AUTOLOAD: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 36 | IO::Socket::Socks::Wrapper::_io_socket_connect_ref(); | |
| 19 | |||
| 20 | local *IO::Socket::IP::connect = local *IO::Socket::connect = sub { | ||
| 21 | 72 | ▶ | return IO::Socket::Socks::Wrapper::_connect(@_, $self->{cfg}, 1); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 22 | 36 | }; | |
| 23 | |||
| 24 | 36 | $AUTOLOAD =~ s/^.+:://; | |
| 25 | 36 | $self->{orig}->$AUTOLOAD(@_); | |
| 26 | } | ||
| 27 | |||
| 28 | sub isa { | ||
| 29 | 14 | ▶ | my $self = shift; |
|
Subroutine
isa: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 30 | 14 | $self->{orig}->isa(@_); | |
| 31 | } | ||
| 32 | |||
| 33 | sub can { | ||
| 34 | 0 | ▶ | my $self = shift; |
|
Subroutine
can: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 35 | 0 | $self->{orig}->can(@_); | |
| 36 | } | ||
| 37 | |||
| 38 | sub DOES { | ||
| 39 | 0 | ▶ | my $self = shift; |
|
Subroutine
DOES: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 40 | 0 | $self->{orig}->DOES(@_); | |
| 41 | } | ||
| 42 | |||
| 43 | ▶ | sub DESTROY {} | |
|
Subroutine
DESTROY: not called CC=1 SCAR=0.0
| |||
| 44 | |||
| 45 | 7 | 1; | |
| 46 | |||
| 47 | __END__ | ||