line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::OBEX::Response::Connect; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1563
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
69
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
80
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.001001'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
26
|
use Carp; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
336
|
|
9
|
2
|
|
|
2
|
|
11
|
use base 'Net::OBEX::Response::Generic'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
940
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub parse_info { |
12
|
2
|
|
|
2
|
1
|
1899
|
my ( $self, $packet ) = @_; |
13
|
2
|
50
|
|
|
|
7
|
$packet = $self->packet |
14
|
|
|
|
|
|
|
unless defined $packet; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
|
|
3
|
my %info; |
17
|
2
|
|
|
|
|
22
|
@info{ qw( |
18
|
|
|
|
|
|
|
response_code packet_length obex_version flags mtu |
19
|
|
|
|
|
|
|
) |
20
|
|
|
|
|
|
|
} = unpack 'a n B8 B8 n', $packet; |
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
|
|
17
|
@info{qw( response_code response_code_meaning ) } = |
23
|
|
|
|
|
|
|
$self->code_meaning( $info{response_code} ); |
24
|
|
|
|
|
|
|
|
25
|
2
|
|
|
|
|
6
|
$info{headers_length} = $info{packet_length} - 7; |
26
|
2
|
|
|
|
|
12
|
$self->headers_length( $info{headers_length} ); |
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
|
|
28
|
return $self->info( \%info ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |