[Erlang Systems]

gen_server

MODULE

MODULE SUMMARY

DESCRIPTION

EXPORTS

start(Module, Args, Options) -> ServerRet
start(ServerName, Module, Args, Options) -> ServerRet
start_link(Module, Args, Options) -> ServerRet
start_link(ServerName, Module, Args, Options) -> ServerRet

call(ServerRef, Request) -> Reply
call(ServerRef, Request, Timeout) -> Reply

cast(ServerRef, Request) -> ok

multi_call(DistRef, Request) -> DistRep
multi_call(Nodes, DistRef, Request) -> DistRep
multi_call(Nodes, DistRef, Request, Timeout) -> DistRep

abcast(DistRef, Request) -> abcast
abcast(Nodes, DistRef, Request) -> abcast

reply(To, Reply) -> true

Callback Functions

EXPORTS

Module:init(Args) -> {ok, State} | {ok, State, Timeout} | ignore | {stop, StopReason}

Module:handle_call(Request, From, State) -> CallReply

Module:handle_cast(Request, State) -> Return

Module:handle_info(Info, State) -> Return

Module:terminate(Reason, State) -> ok

Module:code_change(OldVsn, State, Extra) -> {ok, NewState}

System Events

Example

See Also

AUTHORS


stdlib 1.9.1
Copyright © 1991-2000 Ericsson Utvecklings AB