[erlang-questions] Singleton question or design question for transfer file test program
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions