What I\'m trying to do is have a gen_server process accept a new client and immediately spawn a new child to handle the next one.The issue that I\'m seeing is that when the socket is finished and cons
I want to extend gen_server (create a gen_server_extra) with some additional functionality. The requirements are:
I\'m looking for good examples of Erlang asynchronous message handling with gen_server:cast/2. I\'ve seen an example in the OTP ssh module, which receives a request through
After checking out Gen_Fsm and Gen_Server documents, I 开发者_开发问答found that, more or less, they act as similar behavior. In my opinion, if there is one loop function for sending broadcast or list
Mainly I want to know if I can send a function in a message in a distributed Erlang setup. On Machine 1:
While b开发者_开发知识库rowsing the code of an erlang application, I came across an interesting design problem. Let me describe the situation, but I can\'t post any code because of PIA sorry.
I am a beginner with erlang, and i write a basic gen server program as follows, I want to know, how to test the server so i can know it works well.
I want to start a gen_server that additionally, will perform开发者_如何学JAVA one action every minute.
I try to cast message to a gen_server: gen_server:cast({global, ID}, {watchers}). The handler is: handle_cast({watchers}, State) ->
When starting gen_server\'s from a supervisor 开发者_JS百科(which itself is started by a application) I have the problem that when the start_link of the gen_server doesn\'t return {ok, ...} but {error