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

Comparing AnyEvent-Fork-RPC/RPC.pm (file contents):
Revision 1.7 by root, Wed Apr 17 20:19:41 2013 UTC vs.
Revision 1.8 by root, Wed Apr 17 20:24:36 2013 UTC

256If you need an external module for serialisation, then you can either 256If you need an external module for serialisation, then you can either
257pre-load it into your L<AnyEvent::Fork> process, or you can add a C<use> 257pre-load it into your L<AnyEvent::Fork> process, or you can add a C<use>
258or C<require> statement into the serialiser string. Or both. 258or C<require> statement into the serialiser string. Or both.
259 259
260=back 260=back
261
262See the examples section earlier in this document for some actual examples.
261 263
262=cut 264=cut
263 265
264our $STRING_SERIALISER = '(sub { pack "(w/a*)*", @_ }, sub { unpack "(w/a*)*", shift })'; 266our $STRING_SERIALISER = '(sub { pack "(w/a*)*", @_ }, sub { unpack "(w/a*)*", shift })';
265 267
382 384
383The other thing that can be done with the RPC object is to destroy it. In 385The other thing that can be done with the RPC object is to destroy it. In
384this case, the child process will execute all remaining RPC calls, report 386this case, the child process will execute all remaining RPC calls, report
385their results, and then exit. 387their results, and then exit.
386 388
389See the examples section earlier in this document for some actual
390examples.
391
387=back 392=back
388 393
389=head1 CHILD PROCESS USAGE 394=head1 CHILD PROCESS USAGE
390 395
391The following function is not available in this module. They are only 396The following function is not available in this module. They are only
399 404
400Send an event to the parent. Events are a bit like RPC calls made by the 405Send an event to the parent. Events are a bit like RPC calls made by the
401child process to the parent, except that there is no notion of return 406child process to the parent, except that there is no notion of return
402values. 407values.
403 408
409See the examples section earlier in this document for some actual
410examples.
411
404=back 412=back
405 413
406=head1 SEE ALSO 414=head1 SEE ALSO
407 415
408L<AnyEvent::Fork> (to create the processes in the first place), 416L<AnyEvent::Fork> (to create the processes in the first place),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines