| 1 | #$Id: hub.pm 998 2013-08-14 12:21:20Z pro $ $URL: svn://svn.setun.net/dcppp/trunk/lib/Net/DirectConnect/hub.pm $ | ||||||||||||
| 2 | package #hide from cpan | ||||||||||||
| 3 | Net::DirectConnect::hub; | ||||||||||||
| 4 | 1 | ▶ | use Net::DirectConnect; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 1 | ▶ | use Net::DirectConnect::hubcli; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 1 | ▶ | no strict qw(refs); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 1 | ▶ | use warnings "NONFATAL" => "all"; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 1 | ▶ | no warnings qw(uninitialized); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 1 | ▶ | no if $] >= 5.017011, warnings => 'experimental::smartmatch'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | 1 | our $VERSION = ( split( ' ', '$Revision: 998 $' ) )[1]; | |||||||||||
| 12 | 1 | ▶ | use base 'Net::DirectConnect'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | 0 | ▶ | sub init { | ||||||||||
|
Subroutine
init: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||
| 15 | 0 | my $self = shift; | |||||||||||
| 16 | 0 | %$self = ( | |||||||||||
| 17 | %$self, | ||||||||||||
| 18 | 'incomingclass' => 'Net::DirectConnect::hubcli', | ||||||||||||
| 19 | 'auto_connect' => 0, | ||||||||||||
| 20 | 'auto_listen' => 1, | ||||||||||||
| 21 | 'myport' => 411, | ||||||||||||
| 22 | 'myport_base' => 0, | ||||||||||||
| 23 | 'myport_random' => 0, | ||||||||||||
| 24 | 'myport_tries' => 1, | ||||||||||||
| 25 | 'HubName' => 'Net::DirectConnect test hub', | ||||||||||||
| 26 | , @_ | ||||||||||||
| 27 | ); | ||||||||||||
| 28 | #$self->baseinit(); | ||||||||||||
| 29 | 0 | ▶ | $self->{'parse'} ||= {}; | ||||||||||
|
Condition0%0/2
$self->{"parse"} ||= {}
MC/DC0%0/1
$self->{"parse"} ||= {}
$self->{"parse"}
Truth table0%0/2
A
A= $self->{"parse"}
| |||||||||||||
| 30 | 0 | ▶ | $self->{'cmd'} ||= {}; | ||||||||||
|
Condition0%0/2
$self->{"cmd"} ||= {}
MC/DC0%0/1
$self->{"cmd"} ||= {}
$self->{"cmd"}
Truth table0%0/2
A
A= $self->{"cmd"}
| |||||||||||||
| 31 | } | ||||||||||||
| 32 | 1 | 1; | |||||||||||