X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FIPC-MorseSignals.git;a=blobdiff_plain;f=lib%2FIPC%2FMorseSignals.pm;fp=lib%2FIPC%2FMorseSignals.pm;h=8389e5aa1d1fe6b3c0e8d82b59f829bb9868a516;hp=0000000000000000000000000000000000000000;hb=ddcc7c395d570f0ea20a8e9a242fcbfcc0e49522;hpb=13c16aeec1454ae58e932b393e827d6353c13231 diff --git a/lib/IPC/MorseSignals.pm b/lib/IPC/MorseSignals.pm new file mode 100644 index 0000000..8389e5a --- /dev/null +++ b/lib/IPC/MorseSignals.pm @@ -0,0 +1,96 @@ +package IPC::MorseSignals; + +use strict; +use warnings; + +=head1 NAME + +IPC::MorseSignals - Communicate between processes with Morse signals. + +=head1 VERSION + +Version 0.10 + +=cut + +our $VERSION = '0.10'; + +=head1 SYNOPSIS + + # In the sender process + use IPC::MorseSignals::Emitter; + + my $deuce = new IPC::MorseSignals::Emitter speed => 1024; + $deuce->post('HLAGH') for 1 .. 3; + $deuce->send($pid); + + ... + + # In the receiver process + use IPC::MorseSignals::Receiver; + + local %SIG; + my $pants = new IPC::MorseSignals::Receiver \%SIG, done => sub { + print STDERR "GOT $_[1]\n"; + }; + +head1 DESCRIPTION + +This module implements a rare form of IPC by sending Morse-like signals through C and C. Both of those signals are used, so you won't be able to keep them for something else when you use this module. + +=over 4 + +=item L is a base class for emitters ; + +=item L is a base class for receivers ; + +=back + +But, seriously, use something else for your IPC. :) + +=head1 DEPENDENCIES + +You need the complete L distribution. + +L (standard since perl 5), L (idem) and L (since perl 5.7.3) are also required. + +=head1 SEE ALSO + +L, L. + +L, L, L. + +L for information about signals in perl. + +For truly useful IPC, search for shared memory, pipes and semaphores. + +=head1 AUTHOR + +Vincent Pit, C<< >>, L. + +You can contact me by mail or on #perl @ FreeNode (vincent or Prof_Vince). + +=head1 BUGS + +Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. + +=head1 SUPPORT + +You can find documentation for this module with the perldoc command. + + perldoc IPC::MorseSignals + +=head1 ACKNOWLEDGEMENTS + +Thanks for the inspiration, mofino ! I hope this module will fill all your IPC needs. :) + +=head1 COPYRIGHT & LICENSE + +Copyright 2007-2008 Vincent Pit, all rights reserved. + +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +=cut + +1; # End of IPC::MorseSignals