[ejabberd] why is mod_offline.handle_info implemented?

Holger Weiß holger at zedat.fu-berlin.de
Sun Mar 1 16:13:34 MSK 2015


* Gaurav Jain <monkeyfdude at gmail.com> [2015-02-28 08:06]:
> But I notice that in mod_offline.erl, handle_info is implemented as well.
> 
> * Would you be able to tell why is hadle_info implemented in
>   mod_offline.erl?
> * How will this be called?
> * And under which situtations?

That's a gen_server callback, see the OTP documentation or any good book
on Erlang/OTP, e.g.:

  http://www.erlang.org/doc/man/gen_server.html
  http://www.erlang.org/doc/design_principles/gen_server_concepts.html
  http://learnyousomeerlang.com/clients-and-servers

Holger


More information about the ejabberd mailing list