line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::Frame::continuation; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=encoding utf-8 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=HEAD1 |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Net::WebSocket::Frame::continuation |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $frm = Net::WebSocket::Frame::continuation->new( |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
fin => 1, #default |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
#Optional, can be either empty (default) or four random bytes |
16
|
|
|
|
|
|
|
mask => q<>, |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
payload_sr => \$payload, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
$frm->get_type(); #"continuation" |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$frm->is_control_frame(); #0 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my $mask = $frm->get_mask_bytes(); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $payload = $frm->get_payload(); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my $serialized = $frm->to_bytes(); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
$frm->set_fin(); #turns on |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
5
|
|
|
5
|
|
417
|
use strict; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
195
|
|
36
|
5
|
|
|
5
|
|
39
|
use warnings; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
185
|
|
37
|
|
|
|
|
|
|
|
38
|
5
|
|
|
|
|
38
|
use parent qw( |
39
|
|
|
|
|
|
|
Net::WebSocket::Base::DataFrame |
40
|
5
|
|
|
5
|
|
31
|
); |
|
5
|
|
|
|
|
12
|
|
41
|
|
|
|
|
|
|
|
42
|
5
|
|
|
5
|
|
260
|
use constant get_opcode => 0; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
271
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |