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.8 by root, Tue Aug 4 18:33:30 2009 UTC vs.
Revision 1.9 by root, Tue Aug 4 21:06:47 2009 UTC

97} 97}
98 98
99our $UNIQ = gen_uniq; # per-process/node unique cookie 99our $UNIQ = gen_uniq; # per-process/node unique cookie
100our $ID = "a"; 100our $ID = "a";
101our $PUBLIC = 0; 101our $PUBLIC = 0;
102our $NODE = $$; 102our $NODE = unpack "H*", nonce 16;
103 103
104our %NODE; # node id to transport mapping, or "undef", for local node 104our %NODE; # node id to transport mapping, or "undef", for local node
105our (%PORT, %PORT_DATA); # local ports 105our (%PORT, %PORT_DATA); # local ports
106 106
107our %RMON; # local ports monitored by remote nodes ($RMON{noderef}{portid} == cb) 107our %RMON; # local ports monitored by remote nodes ($RMON{noderef}{portid} == cb)
240 devnull => sub { 240 devnull => sub {
241 # 241 #
242 }, 242 },
243); 243);
244 244
245$NODE{""} = new AnyEvent::MP::Node::Self noderef => $NODE; 245$NODE{""} = $NODE{$NODE} = new AnyEvent::MP::Node::Self noderef => $NODE;
246$PORT{""} = sub { &{ $node_req{+shift} or return } }; 246$PORT{""} = sub { &{ $node_req{+shift} or return } };
247 247
248=back 248=back
249 249
250=head1 SEE ALSO 250=head1 SEE ALSO

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines