line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POEx::IRC::Backend::Listener; |
2
|
|
|
|
|
|
|
$POEx::IRC::Backend::Listener::VERSION = '0.030003'; |
3
|
1
|
|
|
1
|
|
17013
|
use Types::Standard -types; |
|
1
|
|
|
|
|
63765
|
|
|
1
|
|
|
|
|
16
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
3802
|
use Moo; use MooX::TypeTiny; |
|
1
|
|
|
1
|
|
11940
|
|
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
1935
|
|
|
1
|
|
|
|
|
173
|
|
|
1
|
|
|
|
|
5
|
|
6
|
|
|
|
|
|
|
with 'POEx::IRC::Backend::Role::Socket', |
7
|
|
|
|
|
|
|
'POEx::IRC::Backend::Role::HasEndpoint'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has idle => ( |
10
|
|
|
|
|
|
|
lazy => 1, |
11
|
|
|
|
|
|
|
isa => StrictNum, |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
writer => 'set_idle', |
14
|
|
|
|
|
|
|
default => sub { 180 }, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
POEx::IRC::Backend::Listener - An incoming IRC socket Listener |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Typically created by L to represent a listening socket. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 DESCRIPTION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
These objects contain details regarding L |
32
|
|
|
|
|
|
|
Listener sockets. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
This class consumes the following roles: |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
L |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
L |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
... and adds the following attributes: |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 idle |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Interval, in seconds, at which an idle alarm event should be issued for |
45
|
|
|
|
|
|
|
connections to this listener (default: 180) |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Can be altered via B |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHOR |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Jon Portnoy |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |