September 2013
Intermediate to advanced
548 pages
12h 25m
English
see.erl is a single module that exports the following functions:
main()Starts the system.
load_module(Mod)Loads the module Mod.
log_error(Error)Prints the value of Error on standard output.
make_server(Name, FunStart, FunHandler)
Creates a permanent server called Name. The initial
state of the server is determined by evaluating
FunStart(), and the “handler” function for
the server is the fun FunHandler (we will say more
about this later).
rpc(Name, Query)Make a remote procedure call Query to the server
Name.
change_behaviour(Name,FunHandler)Change the behavior of the server called Name by
sending it a new handler function FunHandler.
keep_alive(Name, Fun)Make sure that there is always a registered process called
Name. This process ...
Read now
Unlock full access