ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Base.pm
(Generate patch)

Comparing AnyEvent-MP/MP/Base.pm (file contents):
Revision 1.3 by root, Mon Aug 3 14:47:25 2009 UTC vs.
Revision 1.4 by root, Mon Aug 3 15:40:53 2009 UTC

10 10
11This module provides most of the basic functionality of AnyEvent::MP, 11This module provides most of the basic functionality of AnyEvent::MP,
12exposed through higher level interfaces such as L<AnyEvent::MP> and 12exposed through higher level interfaces such as L<AnyEvent::MP> and
13L<Coro::MP>. 13L<Coro::MP>.
14 14
15=head1 GLOBALS
16
17=over 4
18
15=cut 19=cut
16 20
17package AnyEvent::MP::Base; 21package AnyEvent::MP::Base;
18 22
19use AnyEvent::MP::Node; 23use AnyEvent::MP::Node;
32 36
33our $DEFAULT_SECRET; 37our $DEFAULT_SECRET;
34 38
35our $CONNECT_INTERVAL = 5; # new connect every 5s, at least 39our $CONNECT_INTERVAL = 5; # new connect every 5s, at least
36our $CONNECT_TIMEOUT = 30; # includes handshake 40our $CONNECT_TIMEOUT = 30; # includes handshake
41
42=item $AnyEvent::MP::Base::WARN
43
44This value is called with an error or warning message, when e.g. a connection
45could not be created, authorisation failed and so on.
46
47The default simply logs the message to STDERR.
48
49=cut
37 50
38our $WARN = sub { 51our $WARN = sub {
39 warn "$_[0]\n"; 52 warn "$_[0]\n";
40}; 53};
41 54
176 # 189 #
177 } 190 }
178 } 191 }
179}; 192};
180 193
194=back
195
181=head1 SEE ALSO 196=head1 SEE ALSO
182 197
183L<AnyEvent::MP>. 198L<AnyEvent::MP>.
184 199
185=head1 AUTHOR 200=head1 AUTHOR

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines