line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::WebSocket::Stateful; |
2
|
|
|
|
|
|
|
|
3
|
21
|
|
|
21
|
|
145
|
use strict; |
|
21
|
|
|
|
|
39
|
|
|
21
|
|
|
|
|
533
|
|
4
|
21
|
|
|
21
|
|
95
|
use warnings; |
|
21
|
|
|
|
|
33
|
|
|
21
|
|
|
|
|
3346
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
1
|
0
|
my $class = shift; |
8
|
0
|
0
|
|
|
|
0
|
$class = ref $class if ref $class; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
0
|
my $self = {@_}; |
11
|
0
|
|
|
|
|
0
|
bless $self, $class; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
0
|
return $self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
1997
|
100
|
|
1997
|
1
|
7392
|
sub state { @_ > 1 ? $_[0]->{state} = $_[1] : $_[0]->{state} } |
17
|
|
|
|
|
|
|
|
18
|
44
|
|
|
44
|
1
|
138
|
sub done { shift->state('done') } |
19
|
1428
|
|
|
1428
|
1
|
2194
|
sub is_state { shift->state eq shift } |
20
|
258
|
|
|
258
|
1
|
434
|
sub is_body { shift->is_state('body') } |
21
|
427
|
|
|
427
|
1
|
822
|
sub is_done { shift->is_state('done') } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |