X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FBit-MorseSignals.git;a=blobdiff_plain;f=README;h=7b7f849d955562e250192eb5a98167bc9688b898;hp=63b4b80d9d1590eb4750befc80a519c79afffd2a;hb=HEAD;hpb=f90efd6aef2e807ed35c07341456ce727d6668bc diff --git a/README b/README index 63b4b80..7b7f849 100644 --- a/README +++ b/README @@ -2,7 +2,17 @@ NAME Bit::MorseSignals - The MorseSignals protocol. VERSION - Version 0.01 + Version 0.08 + +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); DESCRIPTION In unidirectionnal communication channels (such as networking or IPC), @@ -15,7 +25,7 @@ DESCRIPTION An actual implementation is also provided : Bit::MorseSignals::Emitter is a base class for emitters ; - Bit::MorseSignals::Receiver is a base class for receivers ; + Bit::MorseSignals::Receiver is a base class for receivers. Go to those pages if you just want the stuff done and don't care about how it gets there. @@ -27,9 +37,9 @@ PROTOCOL The header is composed of three bits (lowest weight coming first) : - - The 2 first ones denotes the data type : a value of 0 is used for a + - 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 Storable - object. See also the "CONSTANTS" sections ; + object. See also the "CONSTANTS" section ; - 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. @@ -82,10 +92,9 @@ SEE ALSO Bit::MorseSignals::Emitter, Bit::MorseSignals::Receiver. AUTHOR - Vincent Pit, "" + Vincent Pit, "", . - You can contact me by mail or on #perl @ FreeNode (vincent or - Prof_Vince). + You can contact me by mail or on "irc.perl.org" (vincent). BUGS Please report any bugs or feature requests to "bug-bit-morsesignals at @@ -99,6 +108,9 @@ SUPPORT perldoc Bit::MorseSignals + Tests code coverage report is available at + . + COPYRIGHT & LICENSE Copyright 2008 Vincent Pit, all rights reserved.