X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FIPC%2FMorseSignals%2FEmitter.pm;h=7a4c3d6da05348b6919e9cf799991fe70d068b18;hb=21ecaad0abc3afdc379efa498a0fdad4ff0e2000;hp=c6961ebe50fe989d9f51f7de209b5d156f952f00;hpb=5a3dc36cc362beb37354a407921d311cef15c172;p=perl%2Fmodules%2FIPC-MorseSignals.git diff --git a/lib/IPC/MorseSignals/Emitter.pm b/lib/IPC/MorseSignals/Emitter.pm index c6961eb..7a4c3d6 100644 --- a/lib/IPC/MorseSignals/Emitter.pm +++ b/lib/IPC/MorseSignals/Emitter.pm @@ -43,9 +43,18 @@ sub _check_self { =head1 METHODS -=head2 C<< new < delay => $seconds, speed => $bauds, %bme_options > >> +=head2 C -Creates a new emitter object. C specifies the delay between two sends, in seconds, while C is the number of bits sent per second. The delay value has priority over the speed. Default delay is 1 second. Extra arguments are passed to L. + my $ime = IPC::MorseSignals::Emitter->new( + delay => $seconds, + speed => $bauds, + %bme_options, + ); + +Creates a new emitter object. +C specifies the delay between two sends, in seconds, while C is the number of bits sent per second. +The delay value has priority over the speed, and defaults to 1 second. +Extra arguments are passed to L. =cut @@ -66,7 +75,9 @@ sub new { bless $self, $class; } -=head2 C +=head2 C + + $ime->send($pid); Sends messages enqueued with L to the process C<$pid> (or to all the C<@$pid> if C<$pid> is an array reference, in which case duplicated targets are stripped off). @@ -89,7 +100,10 @@ sub send { } } -=head2 C<< delay < $seconds > >> +=head2 C + + my $delay = $ime->delay; + $ime->delay($seconds); Returns the current delay in seconds, or set it if an argument is provided. @@ -102,7 +116,10 @@ sub delay { return $self->{delay}; } -=head2 C<< speed < $bauds > >> +=head2 C + + my $speed = $ime->speed; + $ime->speed($bauds); Returns the current speed in bauds, or set it if an argument is provided. @@ -147,7 +164,8 @@ You can contact me by mail or on C (vincent). =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. +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