[erlang-questions] Singleton question or design question for transfer file test program

Boroska András andras.boroska@REDACTED
Mon Dec 21 21:41:09 CET 2015

> "2. Is there a way to create Singleton objects in Erlang other than using

Singleton objects are typically registered gen_servers in Erlang. They can
be registered locally per node or globally per cluster. You probably want
to register the reader and the writer globally and start them on their
respective nodes. For development they can be started on the same node as
well. For simplicity the IoDevice could be stored in the state of each
gen_server. Open the files in the init/1 callback of your gen_server.

See also:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151221/c3a63a80/attachment.htm>

More information about the erlang-questions mailing list