I have worker processes that needs gathered/calculated data as arguments on start up. This is then needed on re-starts as well. Where should I put the initialization code? Inside the supervisors init?
I\'m making a application in Erlang, with a GUI in Java. I\'ve managed to establish a connection between the to languages, but now i need to (i guess) send a message from Java to Erlang, every time I
Are there functions which would allow an OTP process to find the pid开发者_StackOverflow中文版 of its supervisor?The data is hidden in the process dictionary (of any process spawned with proc_lib) und
I noticed that messages sent to the pid of a gen_fsm process are matched in the state callbacks as events.Is this just accidental or can I rely on this feature?
Let\'s say I have several versions of a gen_event handler and want to change them around while the program is running:
I have a supervisor with two worker processes: a TCP client which handles connection to a remote server and an FSM which handles the connection protocol.
My application is basically a content based router which will route MMS events. The logger I am using is the one that comes with the OTP framework in SASL mode "error_logger"
开发者_如何学CI want to simulate the behavior of erl -sname example -hidden but dynamically. How can I drop a node out of visibility in a cluster?
I\'m working through the Erlang documentation, trying to understand the basics of setting up an OTP gen_server and supervisor. Whenever my gen_server crashes, my supervisor crashes as well. In fact, w
I\'ve implemented a gen_server and supervisor: test_server and test_sup. I want to test them from the shell/CLI. I\'ve written their start_li开发者_如何学Pythonnk functions such that their names are r