gen_server without gen_server

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Tue Dec 20 18:12:23 CET 2005


In the Design Principles document:

http://erlang.se/doc/doc-5.4.12/doc/design_principles/spec_proc.html#6.2

plain_fsm in jungerl has a support library with 
callbacks for the system messages.

If you've started a process with one of the plain_fsm
start functions, you can call 
plain_fsm:handle_system_msg(Req, From, State, fun/1)

where the last argument is your continuation fun,
getting the possibly updated state as the argument.

This might be a handy solution if you don't care
to do anything special with the system messages.

(I have an improved plain_fsm - not yet released.
If you want to take it for a spin, let me know.)

/Uffe 

> -----Original Message-----
> From: owner-erlang-questions@REDACTED 
> [mailto:owner-erlang-questions@REDACTED] On Behalf Of klacke
> Sent: den 20 december 2005 16:55
> To: erlang-questions@REDACTED
> Subject: gen_server without gen_server
> 
> 
> Quick question, 
> 
> Where is the code sample which shows a gen_server without the 
> gen_server code. I.e a normal selective receive process which 
> responds to "system" messages ?
> 
> /klacke
> _________________________________________________________
> Sent using Mail2Forum (http://m2f.sourceforge.net)
> 



More information about the erlang-questions mailing list