X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FBit%2FMorseSignals.pm;h=5866e6cbcd93a93e267cc5e90b633f9fdd559670;hb=16fc0df47643288d3229f8671e339d89b159f155;hp=b2afc844829f652505952ba29fade9325332acbb;hpb=f90efd6aef2e807ed35c07341456ce727d6668bc;p=perl%2Fmodules%2FBit-MorseSignals.git diff --git a/lib/Bit/MorseSignals.pm b/lib/Bit/MorseSignals.pm index b2afc84..5866e6c 100644 --- a/lib/Bit/MorseSignals.pm +++ b/lib/Bit/MorseSignals.pm @@ -9,11 +9,22 @@ Bit::MorseSignals - The MorseSignals protocol. =head1 VERSION -Version 0.01 +Version 0.06 =cut -our $VERSION = '0.01'; +our $VERSION = '0.06'; + +=head1 SYNOPSIS + + use Bit::MorseSignals::Emitter; + use Bit::MorseSignals::Receiver; + + my $deuce = Bit::MorseSignals::Emitter->new; + my $pants = Bit::MorseSignals::Receiver->new(done => sub { print $_[1], "\n" }); + + $deuce->post('HLAGH') for 1 .. 3; + $pants->push while defined ($_ = $deuce->pop); =head1 DESCRIPTION @@ -25,7 +36,7 @@ An actual implementation is also provided : =item L is a base class for emitters ; -=item L is a base class for receivers ; +=item L is a base class for receivers. =back @@ -39,7 +50,7 @@ The header is composed of three bits (lowest weight coming first) : =over 4 -=item - The 2 first ones denotes the data type : a value of 0 is used for a plain string, 1 for an UTF-8 encoded string, and 2 for a L object. See also the L sections ; +=item - The 2 first ones denote the data type : a value of 0 is used for a plain string, 1 for an UTF-8 encoded string, and 2 for a L object. See also the L section ; =item - The third one is reserved. For compatibility reasons, the receiver should for now enforce the message data type to plain when this bit is lit. @@ -95,11 +106,11 @@ The constants L, L, L and L; our @EXPORT = (); our %EXPORT_TAGS = ( - 'consts' => [ qw/BM_DATA_AUTO BM_DATA_PLAIN BM_DATA_UTF8 BM_DATA_STORABLE/ ] + 'consts' => [ qw ] ); our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS; $EXPORT_TAGS{'all'} = [ @EXPORT_OK ]; @@ -114,9 +125,9 @@ L, L. =head1 AUTHOR -Vincent Pit, C<< >> +Vincent Pit, C<< >>, L. -You can contact me by mail or on #perl @ FreeNode (vincent or Prof_Vince). +You can contact me by mail or on C (vincent). =head1 BUGS @@ -128,6 +139,8 @@ You can find documentation for this module with the perldoc command. perldoc Bit::MorseSignals +Tests code coverage report is available at L. + =head1 COPYRIGHT & LICENSE Copyright 2008 Vincent Pit, all rights reserved.