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

Comparing AnyEvent-MP/MP.pm (file contents):
Revision 1.104 by root, Fri Nov 6 17:47:20 2009 UTC vs.
Revision 1.107 by root, Wed Dec 30 07:52:46 2009 UTC

155 155
156use AE (); 156use AE ();
157 157
158use base "Exporter"; 158use base "Exporter";
159 159
160our $VERSION = 1.23; 160our $VERSION = 1.24;
161 161
162our @EXPORT = qw( 162our @EXPORT = qw(
163 NODE $NODE *SELF node_of after 163 NODE $NODE *SELF node_of after
164 configure 164 configure
165 snd rcv mon mon_guard kil psub peval spawn cal 165 snd rcv mon mon_guard kil psub peval spawn cal
650 650
651=item kil $port[, @reason] 651=item kil $port[, @reason]
652 652
653Kill the specified port with the given C<@reason>. 653Kill the specified port with the given C<@reason>.
654 654
655If no C<@reason> is specified, then the port is killed "normally" (ports 655If no C<@reason> is specified, then the port is killed "normally" -
656monitoring other ports will not necessarily die because a port dies 656monitor callback will be invoked, but the kil will not cause linked ports
657"normally"). 657(C<mon $mport, $lport> form) to get killed.
658 658
659Otherwise, linked ports get killed with the same reason (second form of 659If a C<@reason> is specified, then linked ports (C<mon $mport, $lport>
660C<mon>, see above). 660form) get killed with the same reason.
661 661
662Runtime errors while evaluating C<rcv> callbacks or inside C<psub> blocks 662Runtime errors while evaluating C<rcv> callbacks or inside C<psub> blocks
663will be reported as reason C<< die => $@ >>. 663will be reported as reason C<< die => $@ >>.
664 664
665Transport/communication errors are reported as C<< transport_error => 665Transport/communication errors are reported as C<< transport_error =>
979L<AnyEvent::MP::Kernel> - more, lower-level, stuff. 979L<AnyEvent::MP::Kernel> - more, lower-level, stuff.
980 980
981L<AnyEvent::MP::Global> - network maintainance and port groups, to find 981L<AnyEvent::MP::Global> - network maintainance and port groups, to find
982your applications. 982your applications.
983 983
984L<AnyEvent::MP::DataConn> - establish data connections between nodes.
985
984L<AnyEvent::MP::LogCatcher> - simple service to display log messages from 986L<AnyEvent::MP::LogCatcher> - simple service to display log messages from
985all nodes. 987all nodes.
986 988
987L<AnyEvent>. 989L<AnyEvent>.
988 990

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines