gen_server
gen_server
Module
gen_server
Module summary
Generic server behavior.
Description
This behavior module provides the server of a client-server relation. A generic server process (gen_server
) implemented using this module has a standard set of interface functions and includes functionality for tracing and error reporting. It also fits into an OTP supervision tree. For more information, see section gen_server Behaviour
in OTP Design Principles.
A gen_server
process assumes all specific parts to be located in a callback module exporting a predefined set of functions. The relationship between the behavior functions and the callback functions is as follows:
gen_server module Callback module ----------------- --------------- gen_server:start gen_server:start_link -----&