Backend/Listener.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Backend/Connector.pm ↑ Summary Backend/Role/HasEndpoint.pm »
1 package POEx::IRC::Backend::Listener;
2 2 $POEx::IRC::Backend::Listener::VERSION = '0.030002';
3 2 ▶use Types::Standard -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 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 1 ▶ default => sub { 180 },
Subroutine __ANON__: called CC=1 SCAR=0.0
15 2 );
16  
17 2 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<POEx::IRC::Backend> to represent a listening socket.
28  
29 =head1 DESCRIPTION
30  
31 These objects contain details regarding L<POEx::IRC::Backend>
32 Listener sockets.
33  
34 This class consumes the following roles:
35  
36 L<POEx::IRC::Backend::Role::Socket>
37  
38 L<POEx::IRC::Backend::Role::HasEndpoint>
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<set_idle>
48  
49 =head1 AUTHOR
50  
51 Jon Portnoy <avenj@cobaltirc.org>
52  
53 =cut
« Backend/Connector.pm ↑ Summary Backend/Role/HasEndpoint.pm »