line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::Message; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
214909
|
use strict; |
|
14
|
|
|
|
|
65
|
|
|
14
|
|
|
|
|
404
|
|
4
|
14
|
|
|
14
|
|
210
|
use warnings; |
|
14
|
|
|
|
|
38
|
|
|
14
|
|
|
|
|
367
|
|
5
|
|
|
|
|
|
|
|
6
|
14
|
|
|
14
|
|
1860
|
use Call::Context (); |
|
14
|
|
|
|
|
1542
|
|
|
14
|
|
|
|
|
3851
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
15
|
50
|
|
15
|
0
|
178
|
if (!$_[1]->isa('Net::WebSocket::Frame')) { |
10
|
0
|
|
|
|
|
0
|
die( (caller 0)[3] . ' needs at least one Net::WebSocket::Frame object!' ); |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
15
|
|
|
|
|
83
|
return bless \@_, shift; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub get_frames { |
17
|
6
|
|
|
6
|
0
|
405
|
my ($self) = @_; |
18
|
|
|
|
|
|
|
|
19
|
6
|
|
|
|
|
24
|
Call::Context::must_be_list(); |
20
|
|
|
|
|
|
|
|
21
|
6
|
|
|
|
|
98
|
return @$self; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub get_payload { |
25
|
18
|
|
|
18
|
0
|
1065
|
my ($self) = @_; |
26
|
|
|
|
|
|
|
|
27
|
18
|
|
|
|
|
118
|
return join( q<>, map { $_->get_payload() } @$self ); |
|
26
|
|
|
|
|
157
|
|
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub get_type { |
31
|
5
|
|
|
5
|
0
|
6209
|
return $_[0][0]->get_type(); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub is_control { |
35
|
1
|
|
|
1
|
0
|
11
|
return $_[0][0]->is_control(); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub to_bytes { |
39
|
1
|
|
|
1
|
0
|
4
|
my ($self) = @_; |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
|
|
3
|
return join( q<>, map { $_->to_bytes() } @$self ); |
|
3
|
|
|
|
|
14
|
|
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |