line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::SecurityCenter::Base; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
819
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
60
|
|
4
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
340
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.311'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
9
|
|
|
|
|
|
|
# CONSTRUCTOR |
10
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
|
|
|
|
|
|
|
14
|
19
|
|
|
19
|
0
|
76
|
my ( $class, $client ) = @_; |
15
|
|
|
|
|
|
|
|
16
|
19
|
|
|
|
|
51
|
my $self = { client => $client, }; |
17
|
|
|
|
|
|
|
|
18
|
19
|
|
|
|
|
172
|
return bless $self, $class; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub client { |
25
|
|
|
|
|
|
|
|
26
|
45
|
|
|
45
|
0
|
1259
|
my ($self) = @_; |
27
|
45
|
|
|
|
|
1333
|
return $self->{client}; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub error { |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
0
|
|
my ( $self, $message, $code ) = @_; |
36
|
|
|
|
|
|
|
|
37
|
0
|
0
|
|
|
|
|
if ( defined $message ) { |
38
|
0
|
|
|
|
|
|
$self->{client}->error( $message, $code ); |
39
|
0
|
|
|
|
|
|
return; |
40
|
|
|
|
|
|
|
} else { |
41
|
0
|
|
|
|
|
|
return $self->{client}->error; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |