line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
1
|
|
1093
|
use Net::DirectConnect; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
5
|
1
|
|
|
1
|
|
749
|
use Net::DirectConnect::hubcli; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
6
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
7
|
1
|
|
|
1
|
|
3
|
no strict qw(refs); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
21
|
|
8
|
1
|
|
|
1
|
|
5
|
use warnings "NONFATAL" => "all"; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
9
|
1
|
|
|
1
|
|
5
|
no warnings qw(uninitialized); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
10
|
1
|
|
|
1
|
|
4
|
no if $] >= 5.017011, warnings => 'experimental::smartmatch'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
11
|
|
|
|
|
|
|
our $VERSION = ( split( ' ', '$Revision: 998 $' ) )[1]; |
12
|
1
|
|
|
1
|
|
88
|
use base 'Net::DirectConnect'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
152
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub init { |
15
|
0
|
|
|
0
|
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
|
|
0
|
|
|
|
$self->{'parse'} ||= {}; |
30
|
0
|
|
0
|
|
|
|
$self->{'cmd'} ||= {}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
1; |