line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POEx::IRC::Backend::Role::Socket; |
2
|
|
|
|
|
|
|
$POEx::IRC::Backend::Role::Socket::VERSION = '0.030001'; |
3
|
5
|
|
|
5
|
|
34785
|
use Moo::Role; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
34
|
|
4
|
|
|
|
|
|
|
with 'POEx::IRC::Backend::Role::HasWheel'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has args => ( |
7
|
|
|
|
|
|
|
lazy => 1, |
8
|
|
|
|
|
|
|
is => 'ro', |
9
|
|
|
|
|
|
|
predicate => 1, |
10
|
|
|
|
|
|
|
default => sub { +{} }, |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has protocol => ( |
14
|
|
|
|
|
|
|
required => 1, |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has ssl => ( |
19
|
|
|
|
|
|
|
is => 'ro', |
20
|
|
|
|
|
|
|
default => sub { 0 }, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=pod |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=for Pod::Coverage has_\w+ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
POEx::IRC::Backend::Role::Socket - IRC socket connector behavior |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
A role defining some basic attributes shared by L sockets. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This role is consumed by L, |
38
|
|
|
|
|
|
|
L, and |
39
|
|
|
|
|
|
|
L objects. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This role consumes L and adds the |
42
|
|
|
|
|
|
|
following attributes: |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 args |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Arbitrary metadata attached to this Connector. (By default, this is a HASH.) |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This is typically passed on to a successfully spawned |
49
|
|
|
|
|
|
|
L. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Predicate: B |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 protocol |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The Internet protocol version for this listener (4 or 6). |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
(For L-produced objects, this is set automatically.) |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 ssl |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Boolean value indicating whether connections should be SSLified. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
(For L-produced objects, this is set automatically.) |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SEE ALSO |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
L |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHOR |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Jon Portnoy |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |