gen_server- abstraction of a typical process message loop. It provides you with an API, for example call, castfor sending messages to a process, but since you also have a PIDprocess, any code can send a message to the process without passing through calleither the castAPI, and in these cases a callback is called handle_info. If you want to send messages to your process by an operator !, you probably do not need gen_serveror if you want to use gen_server, then it is recommended to use the API calland castfor your server and handle_infoother messages.
Ankur source
share