2 ms·
erlang also provides a number of 'behavior' modules e.g. gen_fsm/gen_server etc. which takes out the drudgery of writing boilerplate network client/server code.
by signa11 16y ago
erlang also provides a number of 'behavior' modules e.g. gen_fsm/gen_server etc. which takes out the drudgery of writing boilerplate network client/server code. w.r.t your fsm, are there timeouts also happening at some states ? might be required to avoid holding onto precious resources if either end becomes unresponsive for whatever reason...
- zedshaw 16y agoI had them in there, but was having a problem getting the base state machine right, so took them out. Cool that you noticed though.