glar_morse(3)
=============

NAME
----
glar_morse - Class for Morse lamp controller

SYNOPSIS
--------
----
//  Create new glar_morse actor instance.
//  @TODO: Describe the purpose of this actor!
//
//      zactor_t *glar_morse = zactor_new (glar_morse, NULL);
//
//  Destroy glar_morse instance.
//
//      zactor_destroy (&glar_morse);
//
//  Enable verbose logging of commands and activity:
//
//      zstr_send (glar_morse, "VERBOSE");
//      zsock_wait (glar_morse);
//
//  This is the glar_morse constructor as a zactor_fn;
GLAR_EXPORT void
    glar_morse_actor (zsock_t *pipe, void *args);

//  Self test of this actor
GLAR_EXPORT void
    glar_morse_test (bool verbose);
Please add '@interface' section in './../src/glar_morse.c'.
----

DESCRIPTION
-----------

Converts a character string to Morse code on the lamp. Spaces are turned
into word spaces. If a new command arrives, it will always interrupt the
existing command. Ending the string with "*" causes it to repeat until
interrupted.

Please add '@discuss' section in './../src/glar_morse.c'.

EXAMPLE
-------
.From glar_morse_test method
----
zactor_t *glar_morse = zactor_new (glar_morse_actor, NULL);
if (verbose)
    zstr_send (glar_morse, "VERBOSE");
zstr_send (glar_morse, "SOS*");
zclock_sleep (2000);
zstr_send (glar_morse, "K");
zactor_destroy (&glar_morse);
----
