Annotate

doc/lxmppd_core_stanz_dispatch.txt @ 2132:20a52cfda988

stanza_router: Don't log full stanzas destined for s2s
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 04:46:48 +0000
parent 75:338e75cba18d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
1 lxmppd -> core -> stanza_dispatch
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
2 requires "util.stanza"
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
3 requires "core.usermanager"
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
4
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
5 function init_stanza_dispatcher(session)
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
6 Initialises the stanza dispatcher which handles different stanza according
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
7 to their type and XML namespace, dispatching to required handlers.
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
8
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
9 iq_handlers["jabber:iq:auth"]
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
10 A list of handlers for "jabber:iq:auth" stanzas -- authentication
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
11 (request) stanzas.
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
12
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
13 function (stanza)
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
14 If one of username, password and resource are missing then it ????.
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
15 If not, then it validates the credentials and replies with the
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
16 appropriate stanza.
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
17
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
18 iq_handlers["jabber:iq:roster"]
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
19 A list of handlers for "jabber:iq:roster" stanzas -- roster management
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
20
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
21 function (stanza)
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
22 Parses the type of stanza for roster management and does what is
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
23 requested (roster retrieval, etc.)
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
24
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
25 function (stanza)
236375777f8c Some docs written by Thorns. Need reviewing.
bt@silverblade
parents:
diff changeset
26 Validates the stanza and calls the required handler
75
338e75cba18d Added script to pull from master mercurial repository
Paul-Sebastian Manole <brokenthorn@gmail.com>
parents: 23
diff changeset
27