gen-fsm
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 分类:问答how to handle termination of gen_fsm
I have a MAIN process that spawn an implementa开发者_Python百科tion of a gen_fsm behavior, but this MAIN process is not an implementation of supervisor behavior, its just another module.[详细]
2023-03-07 12:17 分类:问答Get gen_fsm PID
I start gen_fsm: start_link() -> gen_fsm:start_link({global, ?MODULE}, [], []). How can i get it\'s P开发者_JS百科ID?[详细]
2023-03-07 05:04 分类:问答Unique atom for gen_fsm:start/3 in Erlang
I\'m currently in a project making a gameserver. Every player is supposed have an own process with gen_fsm behavior. To start gen_fsm with start/3 we need a unique atom, currently we use make_ref() an[详细]
2023-03-01 21:00 分类:问答Can I handle any received message in gen_fsm state callbacks?
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?[详细]
2023-01-20 06:20 分类:问答Erlang: Implementing a Finite State Machine using gen_fsm
I\'m looking for an example of a simple FSM implemented in Erlang using the gen_fsm from O开发者_如何学编程TP.I found this tutorial really helpful -[详细]
2023-01-12 08:43 分类:问答Allowing a gen_fsm to timeout if it receives no messages
Normally if I\'d like to have an Erlang process timeout I would use the following construct: receive Msg -> ok; %% handle message[详细]
2022-12-20 22:01 分类:问答