… | |
… | |
115 | |
115 | |
116 | use AE (); |
116 | use AE (); |
117 | |
117 | |
118 | use base "Exporter"; |
118 | use base "Exporter"; |
119 | |
119 | |
120 | our $VERSION = '0.1'; |
120 | our $VERSION = $AnyEvent::MP::Base::VERSION; |
|
|
121 | |
121 | our @EXPORT = qw( |
122 | our @EXPORT = qw( |
122 | NODE $NODE *SELF node_of _any_ |
123 | NODE $NODE *SELF node_of _any_ |
123 | resolve_node initialise_node |
124 | resolve_node initialise_node |
124 | snd rcv mon kil reg psub spawn |
125 | snd rcv mon kil reg psub spawn |
125 | port |
126 | port |
… | |
… | |
518 | In the first form (callback), the callback is simply called with any |
519 | In the first form (callback), the callback is simply called with any |
519 | number of C<@reason> elements (no @reason means that the port was deleted |
520 | number of C<@reason> elements (no @reason means that the port was deleted |
520 | "normally"). Note also that I<< the callback B<must> never die >>, so use |
521 | "normally"). Note also that I<< the callback B<must> never die >>, so use |
521 | C<eval> if unsure. |
522 | C<eval> if unsure. |
522 | |
523 | |
523 | In the second form (another port given), the other port (C<$rcvport) |
524 | In the second form (another port given), the other port (C<$rcvport>) |
524 | will be C<kil>'ed with C<@reason>, iff a @reason was specified, i.e. on |
525 | will be C<kil>'ed with C<@reason>, iff a @reason was specified, i.e. on |
525 | "normal" kils nothing happens, while under all other conditions, the other |
526 | "normal" kils nothing happens, while under all other conditions, the other |
526 | port is killed with the same reason. |
527 | port is killed with the same reason. |
527 | |
528 | |
528 | The third form (kill self) is the same as the second form, except that |
529 | The third form (kill self) is the same as the second form, except that |