line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Farly::Transport::Port;
|
2
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
17093
|
use 5.008008;
|
|
17
|
|
|
|
|
53
|
|
|
17
|
|
|
|
|
694
|
|
4
|
17
|
|
|
17
|
|
88
|
use strict;
|
|
17
|
|
|
|
|
66
|
|
|
17
|
|
|
|
|
505
|
|
5
|
17
|
|
|
17
|
|
92
|
use warnings;
|
|
17
|
|
|
|
|
30
|
|
|
17
|
|
|
|
|
451
|
|
6
|
17
|
|
|
17
|
|
79
|
use Carp;
|
|
17
|
|
|
|
|
64
|
|
|
17
|
|
|
|
|
1003
|
|
7
|
17
|
|
|
17
|
|
9845
|
use Farly::Transport::Object;
|
|
17
|
|
|
|
|
40
|
|
|
17
|
|
|
|
|
5319
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @ISA = qw(Farly::Transport::Object);
|
10
|
|
|
|
|
|
|
our $VERSION = '0.26';
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new {
|
13
|
335
|
|
|
335
|
1
|
1173
|
my ( $class, $port ) = @_;
|
14
|
|
|
|
|
|
|
|
15
|
335
|
50
|
|
|
|
908
|
confess "port required" unless ( defined($port) );
|
16
|
|
|
|
|
|
|
|
17
|
335
|
|
|
|
|
718
|
$port =~ s/\s+//g;
|
18
|
|
|
|
|
|
|
|
19
|
335
|
100
|
|
|
|
1702
|
confess "invalid port $port"
|
20
|
|
|
|
|
|
|
unless ( $port =~ /^\d+$/ );
|
21
|
|
|
|
|
|
|
|
22
|
334
|
100
|
66
|
|
|
2219
|
confess "invalid port $port"
|
23
|
|
|
|
|
|
|
unless ( $port > 0 && $port <= 65535 );
|
24
|
|
|
|
|
|
|
|
25
|
333
|
|
|
|
|
1628
|
return bless( \$port, $class );
|
26
|
|
|
|
|
|
|
}
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub as_string {
|
29
|
162
|
|
|
162
|
1
|
272
|
return ${ $_[0] };
|
|
162
|
|
|
|
|
745
|
|
30
|
|
|
|
|
|
|
}
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub port {
|
33
|
461
|
|
|
461
|
1
|
491
|
return ${ $_[0] };
|
|
461
|
|
|
|
|
2069
|
|
34
|
|
|
|
|
|
|
}
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub first {
|
37
|
155
|
|
|
155
|
1
|
162
|
return ${ $_[0] };
|
|
155
|
|
|
|
|
578
|
|
38
|
|
|
|
|
|
|
}
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub last {
|
41
|
77
|
|
|
77
|
1
|
74
|
return ${ $_[0] };
|
|
77
|
|
|
|
|
329
|
|
42
|
|
|
|
|
|
|
}
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub iter {
|
45
|
0
|
|
|
0
|
1
|
|
my @list = ( $_[0] );
|
46
|
0
|
|
|
|
|
|
return @list;
|
47
|
|
|
|
|
|
|
}
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1;
|
50
|
|
|
|
|
|
|
__END__
|