[erlang-questions] Erlang way for process-as-library?

Bengt Kleberg bengt.kleberg@REDACTED
Tue Feb 6 08:55:19 CET 2007


On 2007-02-06 02:17, Robert Baruch wrote:
...deleted
> Now, the next question I have is: is there an Erlang way to forbid  
> "ordinary users" from calling the server's callback functions  
> directly (e.g. init, terminate, and so on), while allowing gen_server  
> access to them?

short answer: no.

long answer: how about including something in the server state that the 
user can not forge? presumably this is expensive since it would need to 
change for each call (btw, i am considering the user as a ''man in the 
middle'' here).


bengt
-- 
Those were the days...
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."



More information about the erlang-questions mailing list