gen-server
gen_server closing listening socket
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[详细]
2023-04-01 23:08 分类:问答Erlang: extended gen_server
I want to extend gen_server (create a gen_server_extra) with some additional functionality. The requirements are:[详细]
2023-03-21 13:37 分类:问答Erlang asynchronous message handling with gen_server:cast/2
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[详细]
2023-03-13 00:17 分类:问答when to use Gen_Fsm and when to use Gen_Server?
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[详细]
2023-03-10 03:46 分类:问答What kind of types can be sent on an Erlang message?
Mainly I want to know if I can send a function in a message in a distributed Erlang setup. On Machine 1:[详细]
2023-03-07 21:06 分类:问答Resolving a dead lock between two gen_tcp
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.[详细]
2023-03-06 09:45 分类:问答How to test gen server in erlang?
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.[详细]
2023-03-03 14:23 分类:问答How to perform actions periodically with Erlang's gen_server?
I want to start a gen_server that additionally, will perform开发者_如何学JAVA one action every minute.[详细]
2023-03-03 08:46 分类:问答Erlang gen_server cast bad return value
I try to cast message to a gen_server: gen_server:cast({global, ID}, {watchers}). The handler is: handle_cast({watchers}, State) ->[详细]
2023-03-02 03:11 分类:问答How to always log/show the error reason when a supervisor child returns error from start_link?
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[详细]
2023-02-06 06:37 分类:问答