line |
true |
false |
branch |
56
|
0 |
23 |
if ($@) |
64
|
0 |
23 |
if ($@) |
66
|
0 |
0 |
if ($@) |
134
|
0 |
4 |
if ($^O eq 'os2') |
136
|
0 |
0 |
unless ($address =~ m[^/socket/]) |
157
|
0 |
22 |
unless defined $domain |
174
|
64 |
0 |
if ($peer) { } |
|
0 |
0 |
elsif ($! != 11 and $! != 103 and $! != 29) { } |
176
|
2 |
62 |
if ($domain eq 'unix') { } |
|
62 |
0 |
elsif ($domain eq 'inet') { } |
|
0 |
0 |
elsif ($domain eq 'inet6') { } |
179
|
0 |
2 |
if length $@ |
198
|
0 |
0 |
if $$event_failure |
226
|
0 |
77 |
unless defined $domain |
258
|
3 |
74 |
if ($!) |
259
|
3 |
0 |
if defined $$event_failure |
268
|
0 |
74 |
if ($!) |
269
|
0 |
0 |
if defined $$event_failure |
280
|
2 |
72 |
if ($domain eq 'unix') { } |
|
72 |
0 |
elsif ($domain eq 'inet') { } |
|
0 |
0 |
elsif ($domain eq 'inet6') { } |
281
|
2 |
0 |
if (defined $peer) |
283
|
0 |
2 |
if length $@ |
289
|
72 |
0 |
if (defined $peer) |
293
|
0 |
72 |
if (length $@) |
301
|
0 |
0 |
if (defined $peer) |
303
|
0 |
0 |
if ($error) |
325
|
0 |
77 |
if ($^O eq 'cygwin' or $^O eq 'MSWin32') |
346
|
0 |
0 |
if ($!) |
347
|
0 |
0 |
if defined $$event_failure |
371
|
0 |
101 |
if scalar @_ & 1 |
376
|
101 |
101 |
if ($name eq 'SuccessEvent') { } |
|
101 |
0 |
elsif ($name eq 'FailureEvent') { } |
377
|
101 |
0 |
if (defined $event) { } |
378
|
0 |
101 |
if (ref $event) |
389
|
101 |
0 |
if (defined $event) { } |
390
|
0 |
101 |
if (ref $event) |
406
|
22 |
79 |
if (defined $$self[5]) { } |
|
79 |
0 |
elsif (defined $$self[6]) { } |
417
|
0 |
79 |
if ($^O eq 'cygwin' or $^O eq 'MSWin32') |
434
|
0 |
24 |
unless defined $$self[0] and fileno $$self[0] |
450
|
0 |
103 |
if @_ & 1 |
455
|
0 |
103 |
if @_ and ref $_[0] eq 'POE::Kernel' |
459
|
0 |
103 |
unless defined $POE::Wheel::SocketFactory::poe_kernel |
460
|
0 |
103 |
unless defined $params{'SuccessEvent'} |
461
|
0 |
103 |
unless defined $params{'FailureEvent'} |
488
|
24 |
79 |
if (defined $domain) { } |
500
|
0 |
103 |
unless (defined $abstract_domain) |
521
|
4 |
99 |
if ($abstract_domain eq 'unix') { } |
|
99 |
0 |
elsif ($abstract_domain eq 'inet' or $abstract_domain eq 'inet6') { } |
522
|
0 |
4 |
if defined $params{'SocketProtocol'} |
534
|
5 |
94 |
defined $params{'SocketProtocol'} ? : |
546
|
99 |
0 |
unless ($socket_protocol =~ /^\d+$/) |
547
|
0 |
99 |
unless ($socket_protocol = $proto_by_name{$socket_protocol} || eval {
do {
getprotobyname $socket_protocol
}
}) |
559
|
0 |
99 |
unless ($protocol_name) |
566
|
0 |
99 |
unless (defined $supported_protocol{$abstract_domain}{$protocol_name}) |
577
|
0 |
103 |
if (defined $params{'SocketType'}) { } |
581
|
0 |
103 |
unless (defined $default_socket_type{$abstract_domain}{$protocol_name}) |
593
|
0 |
103 |
if (POE::Kernel::RUNNING_IN_HELL()) |
602
|
0 |
0 |
if $@ |
607
|
0 |
0 |
unless socket POE, 2, 1, 6 |
616
|
0 |
0 |
if $@ |
620
|
0 |
103 |
unless (socket $socket_handle, $$self[4], $$self[10], $$self[9]) |
637
|
0 |
103 |
if (POE::Kernel::RUNNING_IN_HELL()) |
639
|
0 |
0 |
unless socket POE, 2, 1, 6 |
645
|
0 |
0 |
if $@ |
662
|
0 |
0 |
if (defined $params{'Reuse'} and lc $params{'Reuse'} eq 'yes' || lc $params{'Reuse'} eq 'on' || $params{'Reuse'} =~ /\d+/ && $params{'Reuse'}) |
672
|
0 |
24 |
unless (setsockopt $socket_handle, 1, 2, 1) |
690
|
99 |
4 |
if ($abstract_domain eq 'inet') { } |
|
0 |
4 |
elsif ($abstract_domain eq 'inet6') { } |
|
4 |
0 |
elsif ($abstract_domain eq 'unix') { } |
692
|
24 |
75 |
if (defined $params{'BindAddress'} or defined $params{'BindPort'}) |
695
|
24 |
0 |
defined $params{'BindAddress'} ? : |
702
|
23 |
0 |
if eval {
do {
require bytes
}
} |
705
|
24 |
0 |
unless (length $bind_address == 4) |
709
|
0 |
24 |
unless (defined $bind_address) |
720
|
24 |
0 |
defined $params{'BindPort'} ? : |
721
|
0 |
24 |
if ($bind_port =~ /[^0-9]/) |
723
|
0 |
0 |
unless (defined $bind_port) |
734
|
0 |
24 |
unless (defined $bind_address) |
750
|
0 |
0 |
if (defined $params{'BindAddress'} or defined $params{'BindPort'}) |
753
|
0 |
0 |
defined $params{'BindAddress'} ? : |
761
|
0 |
0 |
defined $params{'BindPort'} ? : |
762
|
0 |
0 |
if ($bind_port =~ /[^0-9]/) |
764
|
0 |
0 |
unless (defined $bind_port) |
775
|
23 |
0 |
if eval {
do {
require bytes
}
} |
785
|
0 |
0 |
unless (@addresses) |
786
|
0 |
0 |
if $error |
803
|
0 |
4 |
if defined $params{'BindPort'} |
805
|
2 |
2 |
if (defined $params{'BindAddress'}) |
807
|
0 |
2 |
if (defined $params{'RemotePort'}) |
818
|
0 |
2 |
unless ($bind_address) |
835
|
26 |
77 |
if (defined $bind_address) |
836
|
0 |
26 |
unless (bind $socket_handle, $bind_address) |
853
|
77 |
26 |
if (defined $params{'RemoteAddress'}) { } |
858
|
75 |
2 |
if ($abstract_domain eq 'inet' or $abstract_domain eq 'inet6') { } |
|
2 |
0 |
elsif ($abstract_domain eq 'unix') { } |
863
|
0 |
75 |
unless defined $params{'RemotePort'} |
864
|
0 |
75 |
if defined $params{'ListenQueue'} |
867
|
0 |
75 |
if ($remote_port =~ /[^0-9]/) |
868
|
0 |
0 |
unless ($remote_port = getservbyname($remote_port, $protocol_name)) |
879
|
75 |
0 |
if ($abstract_domain eq 'inet') { } |
|
0 |
0 |
elsif ($abstract_domain eq 'inet6') { } |
891
|
0 |
0 |
if (not @addresses) { } |
892
|
0 |
0 |
if $error |
911
|
0 |
75 |
unless (defined $connect_address) |
920
|
75 |
0 |
if ($abstract_domain eq 'inet') { } |
|
0 |
0 |
elsif ($abstract_domain eq 'inet6') { } |
931
|
0 |
75 |
unless ($connect_address) |
948
|
0 |
2 |
unless (defined $connect_address) |
965
|
0 |
26 |
if defined $params{'RemotePort'} |
972
|
77 |
26 |
if (defined $connect_address) |
973
|
75 |
2 |
unless (connect $socket_handle, $connect_address) |
974
|
0 |
75 |
if ($! and $! != 115 and $! != 11) |
1001
|
26 |
0 |
if (exists $supported_protocol{$abstract_domain}{$protocol_name}) { } |
1006
|
22 |
4 |
if ($protocol_op eq 'listens') { } |
1015
|
0 |
22 |
unless (listen $socket_handle, $listen_queue) |
1034
|
0 |
4 |
if defined $params{'ListenQueue'} |
1036
|
4 |
0 |
if ($protocol_op eq 'nothing') { } |
1060
|
24 |
0 |
if (defined $$self[0] and defined $$self[5] and defined $$self[12]) |
1071
|
22 |
0 |
if (defined $$self[0] and defined $$self[5] and defined $$self[12]) |
1109
|
99 |
81 |
if (defined $$socket_selected) |
1114
|
22 |
158 |
if (defined $$state_accept) |
1119
|
77 |
103 |
if (defined $$state_connect) |
1124
|
0 |
180 |
if (defined $$mine_success) |
1129
|
0 |
180 |
if (defined $$mine_failure) |