line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::Base::ControlFrame; |
2
|
|
|
|
|
|
|
|
3
|
16
|
|
|
16
|
|
7623
|
use strict; |
|
16
|
|
|
|
|
44
|
|
|
16
|
|
|
|
|
473
|
|
4
|
16
|
|
|
16
|
|
83
|
use warnings; |
|
16
|
|
|
|
|
32
|
|
|
16
|
|
|
|
|
435
|
|
5
|
|
|
|
|
|
|
|
6
|
16
|
|
|
|
|
140
|
use parent qw( |
7
|
|
|
|
|
|
|
Net::WebSocket::Frame |
8
|
16
|
|
|
16
|
|
80
|
); |
|
16
|
|
|
|
|
32
|
|
9
|
|
|
|
|
|
|
|
10
|
16
|
|
|
16
|
|
823
|
use Net::WebSocket::X (); |
|
16
|
|
|
|
|
38
|
|
|
16
|
|
|
|
|
313
|
|
11
|
|
|
|
|
|
|
|
12
|
16
|
|
|
16
|
|
77
|
use constant get_fin => 1; |
|
16
|
|
|
|
|
40
|
|
|
16
|
|
|
|
|
938
|
|
13
|
16
|
|
|
16
|
|
110
|
use constant is_control => 1; |
|
16
|
|
|
|
|
43
|
|
|
16
|
|
|
|
|
2711
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _assemble_length { |
16
|
63
|
|
|
63
|
|
148
|
my ($class, $payload_sr) = @_; |
17
|
|
|
|
|
|
|
|
18
|
63
|
50
|
|
|
|
174
|
if (length $$payload_sr > 125) { |
19
|
0
|
|
|
|
|
0
|
my $type = $class->get_type(); |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
0
|
die Net::WebSocket::X->create('ControlPayloadTooLong', $type, $$payload_sr); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
63
|
|
|
|
|
243
|
return( chr(length $$payload_sr), q<> ); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new { |
28
|
63
|
|
|
63
|
0
|
1286
|
my ($class, @opts) = @_; |
29
|
|
|
|
|
|
|
|
30
|
63
|
|
|
|
|
301
|
return $class->SUPER::new( |
31
|
|
|
|
|
|
|
@opts, |
32
|
|
|
|
|
|
|
fin => 1, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |