| line |
true |
false |
branch |
|
65
|
0 |
1 |
unless (ref $fh) |
|
66
|
0 |
0 |
if $DEBUG |
|
69
|
0 |
0 |
unless ($fh =~ /'|::/) |
|
70
|
0 |
0 |
if $DEBUG |
|
74
|
0 |
0 |
if $DEBUG |
|
80
|
0 |
0 |
if $DEBUG |
|
82
|
0 |
0 |
if $DEBUG |
|
99
|
1 |
0 |
defined $timeout ? : |
|
|
1 |
0 |
if $DEBUG > 1 |
|
104
|
0 |
1 |
unless defined $fh |
|
111
|
1 |
0 |
unless $localaddr = getsockname $fh |
|
114
|
0 |
0 |
unless $remoteaddr = getpeername $fh |
|
116
|
1 |
0 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
0 |
elsif ($@) { } |
|
127
|
1 |
0 |
if $DEBUG |
|
148
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
1 |
if $DEBUG > 1 |
|
163
|
0 |
1 |
defined $timeout ? : |
|
172
|
0 |
1 |
unless socket $self->{'fh'}, 2, 1, $tcpproto |
|
176
|
1 |
0 |
unless bind $self->{'fh'}, $localbind |
|
179
|
0 |
0 |
if ($^O ne "MSWin32") |
|
180
|
0 |
0 |
unless $self->{'fh'}->blocking(0) |
|
187
|
0 |
0 |
unless connect $self->{'fh'}, $identbind or $!{'EINPROGRESS'} |
|
188
|
0 |
0 |
if $^O eq "MSWin32" |
|
190
|
1 |
0 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
0 |
elsif ($@) { } |
|
196
|
0 |
1 |
if $DEBUG |
|
214
|
1 |
0 |
$self->{'error'} ? : |
|
226
|
0 |
37 |
if $DEBUG > 1 |
|
229
|
8 |
29 |
unless $self->{'fh'} |
|
233
|
5 |
24 |
unless $self->{'state'} eq "connect" |
|
238
|
0 |
24 |
if (defined $self->{'maxtime'} and ($timeout = $self->{'maxtime'} - time) < 0) |
|
246
|
0 |
24 |
unless scalar select(undef, $wmask, undef, $timeout) |
|
250
|
0 |
24 |
unless vec $wmask, $fileno, 1 |
|
254
|
0 |
24 |
if (not defined $err or $! = unpack("L", $err)) |
|
263
|
0 |
24 |
unless syswrite($self->{'fh'}, $query, length $query) == length $query |
|
266
|
5 |
24 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
24 |
elsif ($@) { } |
|
272
|
0 |
5 |
if $DEBUG |
|
301
|
0 |
0 |
$blocking ? : |
|
|
0 |
38 |
if $DEBUG > 1 |
|
304
|
7 |
31 |
if ($self->{'state'} eq "ready") |
|
309
|
3 |
28 |
if ($self->{'state'} ne "query") |
|
310
|
1 |
2 |
unless $self->query |
|
314
|
0 |
30 |
unless $self->{'fh'} |
|
323
|
0 |
33 |
if (defined $self->{'maxtime'} and ($timeout = $self->{'maxtime'} - time) < 0) |
|
329
|
17 |
16 |
unless $blocking |
|
334
|
30 |
3 |
if (select $rmask, undef, undef, $timeout) |
|
337
|
30 |
0 |
if (vec $rmask, $fileno, 1) |
|
342
|
0 |
30 |
unless defined $nread |
|
344
|
4 |
26 |
unless $nread |
|
351
|
1 |
25 |
unless length $self->{'answer'} <= 1000 |
|
357
|
19 |
6 |
if ($self->{'answer'} =~ /[\n\r]/) |
|
359
|
0 |
19 |
if $DEBUG |
|
374
|
5 |
25 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
25 |
elsif ($@) { } |
|
380
|
0 |
5 |
if $DEBUG |
|
406
|
0 |
26 |
if $DEBUG > 1 |
|
409
|
1 |
0 |
wantarray ? : |
|
|
1 |
25 |
unless $self->ready(1) |
|
416
|
2 |
21 |
if (not defined $reply or $self->{'remoteport'} != $port1 or $self->{'localport'} != $port2) |
|
420
|
0 |
4 |
if $DEBUG |
|
421
|
4 |
0 |
wantarray ? : |
|
425
|
8 |
13 |
if ($replytype eq 'ERROR') { } |
|
426
|
0 |
8 |
if $DEBUG |
|
434
|
0 |
13 |
unless (($opsys, $userid) = $reply =~ /\s*((?:[^\\:]+|\\.)*):(.*)$/) |
|
438
|
0 |
0 |
if $DEBUG |
|
439
|
0 |
0 |
wantarray ? : |
|
465
|
11 |
2 |
unless ($opsys =~ /,/ or $opsys eq "OTHER") |
|
477
|
0 |
21 |
if ($DEBUG > 1) |
|
479
|
0 |
0 |
defined $userid ? : |
|
480
|
0 |
0 |
defined $opsys ? : |
|
481
|
0 |
0 |
defined $error ? : |
|
483
|
18 |
3 |
wantarray ? : |
|
491
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
0 |
if $DEBUG > 1 |
|
503
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
0 |
if $DEBUG > 1 |
|
540
|
7 |
2 |
if ($fail =~ /^_export_hook_(.*)$/ and $EXPORT_HOOKS{$1}) { } |
|
547
|
2 |
5 |
if (@other) |
|
558
|
5 |
0 |
grep(/^IO::/, @FileHandle::ISA) ? : |
|
565
|
0 |
5 |
if $DEBUG |
|
575
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
0 |
if $DEBUG > 1 |
|
580
|
0 |
2 |
if $DEBUG |