1 package IPC::MorseSignals;
8 IPC::MorseSignals - Communicate between processes with Morse signals.
16 our $VERSION = '0.15';
20 # In the sender process
21 use IPC::MorseSignals::Emitter;
23 my $deuce = new IPC::MorseSignals::Emitter speed => 1024;
24 $deuce->post('HLAGH') for 1 .. 3;
29 # In the receiver process
30 use IPC::MorseSignals::Receiver;
33 my $pants = new IPC::MorseSignals::Receiver \%SIG, done => sub {
34 print STDERR "GOT $_[1]\n";
39 This module implements a rare form of IPC by sending Morse-like signals through C<SIGUSR1> and C<SIGUSR2>. Both of those signals are used, so you won't be able to keep them for something else when you use this module.
43 =item L<IPC::MorseSignals::Emitter> is a base class for emitters ;
45 =item L<IPC::MorseSignals::Receiver> is a base class for receivers.
49 But, seriously, use something else for your IPC. :)
53 You need the complete L<Bit::MorseSignals> distribution.
55 L<Carp> (standard since perl 5), L<POSIX> (idem) and L<Time::HiRes> (since perl 5.7.3) are also required.
59 L<IPC::MorseSignals::Emitter>, L<IPC::MorseSignals::Receiver>.
61 L<Bit::MorseSignals>, L<Bit::MorseSignals::Emitter>, L<Bit::MorseSignals::Receiver>.
63 L<perlipc> for information about signals in perl.
65 For truly useful IPC, search for shared memory, pipes and semaphores.
69 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
71 You can contact me by mail or on C<irc.perl.org> (vincent).
75 Please report any bugs or feature requests to C<bug-ipc-morsesignals at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IPC-MorseSignals>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
79 You can find documentation for this module with the perldoc command.
81 perldoc IPC::MorseSignals
83 =head1 ACKNOWLEDGEMENTS
85 Thanks for the inspiration, mofino ! I hope this module will fill all your IPC needs. :)
87 =head1 COPYRIGHT & LICENSE
89 Copyright 2007-2008 Vincent Pit, all rights reserved.
91 This program is free software; you can redistribute it and/or modify it
92 under the same terms as Perl itself.
96 1; # End of IPC::MorseSignals