--- AnyEvent-MP/MP.pm 2012/03/12 10:34:06 1.133 +++ AnyEvent-MP/MP.pm 2012/03/21 15:22:16 1.136 @@ -249,12 +249,17 @@ precedence over any values configured via the rc file. The default is for the rc file to override any options specified in the program. -=item secure => $pass->($nodeid) +=item secure => $pass->(@msg) In addition to specifying a boolean, you can specify a code reference that -is called for every remote execution attempt - the execution request is +is called for every code execution attempt - the execution request is granted iff the callback returns a true value. +Most of the time the callback should look only at +C<$AnyEvent::MP::Kernel::SRCNODE> to make a decision, and not at the +actual message (which can be about anything, and is mostly provided for +diagnostic purposes). + See F for more info. =back @@ -402,7 +407,7 @@ my $KILME = sub { (my $tag = substr $_[0], 0, 30) =~ s/([\x20-\x7e])/./g; - kil $SELF, unhandled_message => "no callback set for message (first element $tag)"; + kil $SELF, unhandled_message => "no callback found for message '$tag'"; }; sub port(;&) {