| line |
true |
false |
branch |
|
67
|
1 |
0 |
unless (ref $fh) |
|
68
|
1 |
0 |
if $Net::Ident::DEBUG |
|
70
|
1 |
0 |
unless ($fh =~ /'|::/) |
|
71
|
1 |
0 |
if $Net::Ident::DEBUG |
|
74
|
1 |
0 |
if $Net::Ident::DEBUG |
|
79
|
1 |
0 |
if $Net::Ident::DEBUG |
|
81
|
1 |
0 |
if $Net::Ident::DEBUG |
|
97
|
1 |
0 |
defined $timeout ? : |
|
|
1 |
0 |
if $Net::Ident::DEBUG > 1 |
|
103
|
0 |
1 |
unless defined $fh |
|
110
|
1 |
0 |
unless $localaddr = getsockname $fh |
|
113
|
0 |
0 |
unless $remoteaddr = getpeername $fh |
|
115
|
1 |
0 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
0 |
elsif ($@) { } |
|
124
|
1 |
0 |
if $Net::Ident::DEBUG |
|
144
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
0 |
if $Net::Ident::DEBUG > 1 |
|
162
|
0 |
0 |
defined $timeout ? : |
|
171
|
0 |
0 |
unless socket $$self{'fh'}, 2, 1, $tcpproto |
|
175
|
0 |
0 |
unless bind $$self{'fh'}, $localbind |
|
178
|
0 |
0 |
unless fcntl $$self{'fh'}, 4, $NONBLOCK |
|
182
|
0 |
0 |
unless connect $$self{'fh'}, $identbind or $!{'EINPROGRESS'} |
|
185
|
0 |
0 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
0 |
elsif ($@) { } |
|
190
|
0 |
0 |
if $Net::Ident::DEBUG |
|
217
|
0 |
0 |
if $Net::Ident::DEBUG > 1 |
|
220
|
0 |
0 |
unless $$self{'fh'} |
|
224
|
0 |
0 |
unless $$self{'state'} eq 'connect' |
|
229
|
0 |
0 |
if (defined $$self{'maxtime'} and ($timeout = $$self{'maxtime'} - time) < 0) |
|
237
|
0 |
0 |
unless scalar select(undef, $wmask, $emask = $wmask, $timeout) |
|
241
|
0 |
0 |
if vec $emask, $fileno, 1 |
|
244
|
0 |
0 |
unless vec $wmask, $fileno, 1 |
|
248
|
0 |
0 |
if (not defined $err or $! = unpack('L', $err)) |
|
256
|
0 |
0 |
unless syswrite($$self{'fh'}, $query, length $query) == length $query |
|
259
|
0 |
0 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
0 |
elsif ($@) { } |
|
264
|
0 |
0 |
if $Net::Ident::DEBUG |
|
291
|
0 |
0 |
$blocking ? : |
|
|
0 |
0 |
if $Net::Ident::DEBUG > 1 |
|
295
|
0 |
0 |
if ($$self{'state'} ne 'query') { } |
|
|
0 |
0 |
elsif ($$self{'state'} eq 'ready') { } |
|
296
|
0 |
0 |
unless $self->query |
|
304
|
0 |
0 |
unless $$self{'fh'} |
|
312
|
0 |
0 |
if (defined $$self{'maxtime'} and ($timeout = $$self{'maxtime'} - time) < 0) |
|
317
|
0 |
0 |
unless $blocking |
|
322
|
0 |
0 |
if (select $rmask, undef, $emask = $rmask, $timeout) |
|
324
|
0 |
0 |
if vec $emask, $fileno, 1 |
|
327
|
0 |
0 |
if (vec $rmask, $fileno, 1) |
|
330
|
0 |
0 |
unless defined sysread($$self{'fh'}, $answer, 1000) |
|
337
|
0 |
0 |
unless length $$self{'answer'} <= 1000 |
|
343
|
0 |
0 |
if ($$self{'answer'} =~ /[\n\r]/) |
|
345
|
0 |
0 |
if $Net::Ident::DEBUG |
|
360
|
0 |
0 |
if ($@ =~ /^= (.*)/) { } |
|
|
0 |
0 |
elsif ($@) { } |
|
365
|
0 |
0 |
if $Net::Ident::DEBUG |
|
387
|
0 |
0 |
if $Net::Ident::DEBUG > 1 |
|
389
|
0 |
0 |
wantarray ? : |
|
|
0 |
0 |
unless $self->ready(1) |
|
398
|
0 |
0 |
if (not defined $reply or $$self{'remoteport'} != $port1 or $$self{'localport'} != $port2) |
|
402
|
0 |
0 |
if $Net::Ident::DEBUG |
|
403
|
0 |
0 |
wantarray ? : |
|
407
|
0 |
0 |
if ($replytype eq 'ERROR') { } |
|
408
|
0 |
0 |
if $Net::Ident::DEBUG |
|
416
|
0 |
0 |
unless (($opsys, $userid) = $reply =~ /\s*((?:[^\\:]+|\\.)*):(.*)$/) |
|
420
|
0 |
0 |
if $Net::Ident::DEBUG |
|
421
|
0 |
0 |
wantarray ? : |
|
446
|
0 |
0 |
unless ($opsys =~ /,/ or $opsys eq 'OTHER') |
|
456
|
0 |
0 |
if ($Net::Ident::DEBUG > 1) |
|
458
|
0 |
0 |
defined $userid ? : |
|
459
|
0 |
0 |
defined $opsys ? : |
|
460
|
0 |
0 |
defined $error ? : |
|
462
|
0 |
0 |
wantarray ? : |
|
470
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
0 |
if $Net::Ident::DEBUG > 1 |
|
485
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
0 |
if $Net::Ident::DEBUG > 1 |
|
524
|
4 |
0 |
if ($fail =~ /^_export_hook_(.*)$/ and $Net::Ident::EXPORT_HOOKS{$1}) { } |
|
531
|
0 |
3 |
if (@other) |
|
541
|
3 |
0 |
grep(/^IO::/, @FileHandle::ISA) ? : |
|
547
|
0 |
3 |
if $Net::Ident::DEBUG |
|
556
|
0 |
0 |
defined $timeout ? : |
|
|
0 |
0 |
if $Net::Ident::DEBUG > 1 |
|
562
|
0 |
1 |
if $Net::Ident::DEBUG |