Software /
code /
prosody
Annotate
doc/lxmppd_core_stanz_dispatch.txt @ 1067:21f41b06f1d2
loggingmanager: Add ability to set 'log' config option to a filename, which causes all levels >= info to be logged to that file
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 29 Apr 2009 20:52:24 +0100 |
parent | 75:338e75cba18d |
rev | line source |
---|---|
23 | 1 lxmppd -> core -> stanza_dispatch |
2 requires "util.stanza" | |
3 requires "core.usermanager" | |
4 | |
5 function init_stanza_dispatcher(session) | |
6 Initialises the stanza dispatcher which handles different stanza according | |
7 to their type and XML namespace, dispatching to required handlers. | |
8 | |
9 iq_handlers["jabber:iq:auth"] | |
10 A list of handlers for "jabber:iq:auth" stanzas -- authentication | |
11 (request) stanzas. | |
12 | |
13 function (stanza) | |
14 If one of username, password and resource are missing then it ????. | |
15 If not, then it validates the credentials and replies with the | |
16 appropriate stanza. | |
17 | |
18 iq_handlers["jabber:iq:roster"] | |
19 A list of handlers for "jabber:iq:roster" stanzas -- roster management | |
20 | |
21 function (stanza) | |
22 Parses the type of stanza for roster management and does what is | |
23 requested (roster retrieval, etc.) | |
24 | |
25 function (stanza) | |
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 |