File Coverage

blib/lib/POEx/IRC/Backend/Listener.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package POEx::IRC::Backend::Listener;
2             $POEx::IRC::Backend::Listener::VERSION = '0.030002';
3 1     1   15882 use Types::Standard -types;
  1         58682  
  1         15  
4              
5 1     1   3771 use Moo;
  1         10598  
  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