| 1 | package POEx::IRC::Backend::Role::Socket; | ||
| 2 | 3 | $POEx::IRC::Backend::Role::Socket::VERSION = '0.030001'; | |
| 3 | 3 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | with 'POEx::IRC::Backend::Role::HasWheel'; | |
| 5 | |||
| 6 | has args => ( | ||
| 7 | lazy => 1, | ||
| 8 | is => 'ro', | ||
| 9 | predicate => 1, | ||
| 10 | 1 | ▶ | default => sub { +{} }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ); | |
| 12 | |||
| 13 | 3 | has protocol => ( | |
| 14 | required => 1, | ||
| 15 | is => 'ro', | ||
| 16 | ); | ||
| 17 | |||
| 18 | has ssl => ( | ||
| 19 | is => 'ro', | ||
| 20 | 3 | ▶ | default => sub { 0 }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 21 | 3 | ); | |
| 22 | |||
| 23 | 3 | 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<POEx::IRC::Backend> sockets. | ||
| 36 | |||
| 37 | This role is consumed by L<POEx::IRC::Backend::Connect>, | ||
| 38 | L<POEx::IRC::Backend::Connector>, and | ||
| 39 | L<POEx::IRC::Backend::Listener> objects. | ||
| 40 | |||
| 41 | This role consumes L<POEx::IRC::Backend::Role::HasWheel> 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<POEx::IRC::Backend::Connect>. | ||
| 50 | |||
| 51 | Predicate: B<has_args> | ||
| 52 | |||
| 53 | =head2 protocol | ||
| 54 | |||
| 55 | The Internet protocol version for this listener (4 or 6). | ||
| 56 | |||
| 57 | (For L<POEx::IRC::Backend>-produced objects, this is set automatically.) | ||
| 58 | |||
| 59 | =head2 ssl | ||
| 60 | |||
| 61 | Boolean value indicating whether connections should be SSLified. | ||
| 62 | |||
| 63 | (For L<POEx::IRC::Backend>-produced objects, this is set automatically.) | ||
| 64 | |||
| 65 | =head1 SEE ALSO | ||
| 66 | |||
| 67 | L<POEx::IRC::Backend::Role::HasWheel> | ||
| 68 | |||
| 69 | L<POEx::IRC::Backend::Role::HasEndpoint> | ||
| 70 | |||
| 71 | =head1 AUTHOR | ||
| 72 | |||
| 73 | Jon Portnoy <avenj@cobaltirc.org> | ||
| 74 | |||
| 75 | =cut | ||