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

Comparing cvsroot/AnyEvent-MP/MP/Kernel.pm (file contents):
Revision 1.93 by root, Wed Mar 14 23:34:10 2012 UTC vs.
Revision 1.94 by root, Wed Mar 14 23:36:33 2012 UTC

208# this function adds a node-ref, so you can send stuff to it 208# this function adds a node-ref, so you can send stuff to it
209# it is basically the central routing component. 209# it is basically the central routing component.
210sub add_node { 210sub add_node {
211 my ($node) = @_; 211 my ($node) = @_;
212 212
213 defined $node #d#UGLY 213 length $node
214 or Carp::croak "'undef' is not a valid node ID/port ID"; 214 or Carp::croak "'undef' or the empty string are not valid node/port IDs";
215 215
216 $NODE{$node} ||= new AnyEvent::MP::Node::Remote $node 216 $NODE{$node} ||= new AnyEvent::MP::Node::Remote $node
217} 217}
218 218
219sub snd(@) { 219sub snd(@) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines