line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Host.pm 134 2009-10-16 18:21:38Z jabra $ |
2
|
|
|
|
|
|
|
package Sslscan::Parser::Host; |
3
|
|
|
|
|
|
|
{ |
4
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
2683
|
use Object::InsideOut; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
my @ip : Field : Arg(ip) : Get(ip); |
10
|
|
|
|
|
|
|
my @ports : Field : All(ports) : Type(List(Sslscan::Parser::Host::Port)); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub get_port { |
13
|
0
|
|
|
0
|
0
|
|
my ( $self, $port ) = @_; |
14
|
0
|
|
|
|
|
|
my @ports = grep( $_->port eq $port, @{ $self->ports } ); |
|
0
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
return $ports[0]; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub get_all_ports { |
19
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
20
|
0
|
|
|
|
|
|
my @ports = @{ $self->ports }; |
|
0
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
return @ports; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
1; |