line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::Message; |
2
|
|
|
|
|
|
|
|
3
|
13
|
|
|
13
|
|
177395
|
use strict; |
|
13
|
|
|
|
|
43
|
|
|
13
|
|
|
|
|
298
|
|
4
|
13
|
|
|
13
|
|
54
|
use warnings; |
|
13
|
|
|
|
|
21
|
|
|
13
|
|
|
|
|
251
|
|
5
|
|
|
|
|
|
|
|
6
|
13
|
|
|
13
|
|
1406
|
use Call::Context (); |
|
13
|
|
|
|
|
1144
|
|
|
13
|
|
|
|
|
2910
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
15
|
50
|
|
15
|
0
|
154
|
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
|
|
|
|
|
58
|
return bless \@_, shift; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub get_frames { |
17
|
6
|
|
|
6
|
0
|
337
|
my ($self) = @_; |
18
|
|
|
|
|
|
|
|
19
|
6
|
|
|
|
|
24
|
Call::Context::must_be_list(); |
20
|
|
|
|
|
|
|
|
21
|
6
|
|
|
|
|
65
|
return @$self; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub get_payload { |
25
|
18
|
|
|
18
|
0
|
1430
|
my ($self) = @_; |
26
|
|
|
|
|
|
|
|
27
|
18
|
|
|
|
|
54
|
return join( q<>, map { $_->get_payload() } @$self ); |
|
26
|
|
|
|
|
111
|
|
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub get_type { |
31
|
5
|
|
|
5
|
0
|
4610
|
return $_[0][0]->get_type(); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub is_control { |
35
|
1
|
|
|
1
|
0
|
12
|
return $_[0][0]->is_control(); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub to_bytes { |
39
|
1
|
|
|
1
|
0
|
3
|
my ($self) = @_; |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
|
|
4
|
return join( q<>, map { $_->to_bytes() } @$self ); |
|
3
|
|
|
|
|
19
|
|
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |