Bit::MorseSignalsThe MorseSignals protocol | |
Download |
Bit::MorseSignals Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Vincent Pit
- Publisher web site:
- http://search.cpan.org/~vpit/
Bit::MorseSignals Tags
Bit::MorseSignals Description
The MorseSignals protocol In unidirectionnal communication channels (such as networking or IPC), the main issue is often to know the length of the message. Some possible solutions are fixed-length messages (which is quite cumbersome) or a special ending sequence (but it no longer can appear in the data). Bit::MorseSignals is a Perl module that proposes another solution, by using a begin/end signature specialized for each message.An actual implementation is also provided :Bit::MorseSignals::Emitter is a base class for emitters ;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.SYNOPSIS use Bit::MorseSignals::Emitter; use Bit::MorseSignals::Receiver; my $deuce = new Bit::MorseSignals::Emitter; my $pants = new Bit::MorseSignals::Receiver done => sub { print $_, "\n" }; $deuce->post('HLAGH') for 1 .. 3; $pants->push while defined ($_ = $deuce->pop); Requirements: · Perl
Bit::MorseSignals Related Software