[Erlang Systems]

gen_event

MODULE

MODULE SUMMARY

DESCRIPTION

EXPORTS

start() -> ServerRet
start(Name) -> ServerRet
start_link() -> ServerRet
start_link(Name) -> ServerRet

stop(EventMgr) -> ok

notify(EventMgr, Event) -> ok
sync_notify(EventMgr, Event) -> ok

add_handler(EventMgr, Handler, Args) -> ok | ErrorRet

add_sup_handler(EventMgr, Handler, Args) -> ok | ErrorRet

delete_handler(EventMgr, Handler, Args) -> DelRet

swap_handler(EventMgr, OldHandler, NewHandler) -> SwRet

swap_sup_handler(EventMgr, OldHandler, NewHandler) -> SwRet

call(EventMgr, Handler, Query) -> Ret
call(EventMgr, Handler, Query, Timeout) -> Ret

which_handlers(EventMgr) -> [Handler]

Callback Functions

EXPORTS

Module:init(Args) -> InitRes

Module:handle_event(Event, State) -> EventRet

Module:handle_call(Query, State) -> CallRet

Module:handle_info(Info, State) -> EventRet

Module:terminate(Arg, State) -> TermRet

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

System events

See also

AUTHORS


stdlib 1.9.1
Copyright © 1991-2000 Ericsson Utvecklings AB