line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Auth::Kokolores::Protocol; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
337
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: base class for implementing a kokolores protocol handler |
6
|
|
|
|
|
|
|
our $VERSION = '1.01'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has 'server' => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => 'Net::Server', |
11
|
|
|
|
|
|
|
required => 1, |
12
|
|
|
|
|
|
|
handles => { |
13
|
|
|
|
|
|
|
'log' => 'log', |
14
|
|
|
|
|
|
|
}, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has 'handle' => ( |
18
|
|
|
|
|
|
|
is => 'ro', isa => 'IO::Handle', required => 1, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub init_connection { |
22
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
23
|
0
|
|
|
|
|
|
return; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub read_request { |
27
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
28
|
0
|
|
|
|
|
|
die('NOT IMPLEMENTED'); |
29
|
0
|
|
|
|
|
|
return; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub write_response { |
33
|
0
|
|
|
0
|
0
|
|
my ( $self, $response ) = @_; |
34
|
0
|
|
|
|
|
|
die('NOT IMPLEMENTED'); |
35
|
0
|
|
|
|
|
|
return; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub shutdown_connection { |
39
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
40
|
0
|
|
|
|
|
|
return; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=pod |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=encoding UTF-8 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 NAME |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Auth::Kokolores::Protocol - base class for implementing a kokolores protocol handler |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 VERSION |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
version 1.01 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 AUTHOR |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Markus Benning <ich@markusbenning.de> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This software is Copyright (c) 2016 by Markus Benning <ich@markusbenning.de>. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is free software, licensed under: |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
The GNU General Public License, Version 2, June 1991 |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |