line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Object::Remote::Connector::UNIX; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
8672
|
use IO::Socket::UNIX; |
|
11
|
|
|
|
|
116952
|
|
|
11
|
|
|
|
|
57
|
|
4
|
11
|
|
|
11
|
|
4360
|
use Moo; |
|
11
|
|
|
|
|
30
|
|
|
11
|
|
|
|
|
65
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
with 'Object::Remote::Role::Connector'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has socket_path => (is => 'ro', required => 1); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _open2_for { |
11
|
0
|
|
|
0
|
|
|
my ($self) = @_; |
12
|
0
|
|
|
|
|
|
my $path = $self->socket_path; |
13
|
0
|
0
|
|
|
|
|
my $sock = IO::Socket::UNIX->new($path) |
14
|
|
|
|
|
|
|
or die "Couldn't open socket ${path}: $!"; |
15
|
0
|
|
|
|
|
|
($sock, $sock, undef); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
11
|
|
|
11
|
|
5992
|
no warnings 'once'; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
1653
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
push @Object::Remote::Connection::Guess, sub { |
21
|
|
|
|
|
|
|
for ($_[0]) { |
22
|
|
|
|
|
|
|
if (defined and !ref and /^(?:\.\/|\/)/) { |
23
|
|
|
|
|
|
|
my $socket = shift(@_); |
24
|
|
|
|
|
|
|
return __PACKAGE__->new(@_, socket_path => $socket); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
return; |
28
|
|
|
|
|
|
|
}; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |