Module ejabberd_global_router [erl svg]

Behaviours: gen_server.

Function Index

all_prefixes/0
code_change/3Convert process state when code is changed.
combine_routes/2*
delete_route/2*
dirty_get_route/1*
expand_route/2*
expand_routes/1
find_prefix/2
find_route/1
handle_call/3Call message handler callbacks.
handle_cast/2Cast message handler callbacks.
handle_info/2Non gen-server message handler callbacks.
init/1Initialises the server's state.
pick_local_route/1*
pick_one_route/1*
pick_remote_route/1*
pick_route/1*
prefix_match/2*
register_route/1
register_route/2
remove_prefix/2
route/3
route/4
server_host/2
start_link/0Starts the server.
terminate/2This function is called by a gen_server when it is about to terminate.
unregister_route/1
unregister_route/2
update_tables/0*
write_route/1*

Function Details

all_prefixes/0

all_prefixes() -> any()

code_change/3

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

Convert process state when code is changed

combine_routes/2 *

combine_routes(R, Global_route) -> any()

delete_route/2 *

delete_route(Prefix, Pid) -> any()

dirty_get_route/1 *

dirty_get_route(Prefix) -> any()

expand_route/2 *

expand_route(Prefix, Domain) -> any()

expand_routes/1

expand_routes(Domain) -> any()

find_prefix/2

find_prefix(Domain, PossiblePrefixes) -> any()

find_route/1

find_route(Domain) -> any()

handle_call/3

handle_call(Call::Request, From, State) -> {reply, Reply, State} | {reply, Reply, State, Timeout} | {noreply, State} | {noreply, State, Timeout} | {stop, Reason, Reply, State} | {stop, Reason, State}

Call message handler callbacks

handle_cast/2

handle_cast(Msg, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

Cast message handler callbacks

handle_info/2

handle_info(Info, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

Non gen-server message handler callbacks

init/1

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

Initialises the server's state

pick_local_route/1 *

pick_local_route(Pids) -> any()

pick_one_route/1 *

pick_one_route(Pids) -> any()

pick_remote_route/1 *

pick_remote_route(Pids) -> any()

pick_route/1 *

pick_route(Pids) -> any()

prefix_match/2 *

prefix_match(Domain, Prefixes) -> any()

register_route/1

register_route(Prefix) -> any()

register_route/2

register_route(Prefix, Pid) -> any()

remove_prefix/2

remove_prefix(Prefix, Domain) -> any()

route/3

route(From, To, Packet) -> any()

route/4

route(Global_route, From, To, Packet) -> any()

server_host/2

server_host(Host, Pid) -> any()

start_link/0

start_link() -> {ok, Pid} | ignore | {error, Error}

Starts the server

terminate/2

terminate(Reason, State) -> void()

This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.

unregister_route/1

unregister_route(Prefix) -> any()

unregister_route/2

unregister_route(Prefix, Pid) -> any()

update_tables/0 *

update_tables() -> any()

write_route/1 *

write_route(R) -> any()


Generated by EDoc, May 23 2012, 07:15:16.