Software /
code /
prosody
Comparison
doc/session.txt @ 55:4edb942e9dff
Some notes of the stanza and session structures
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 04 Oct 2008 19:32:02 +0500 |
child | 61:7afc23a8114e |
comparison
equal
deleted
inserted
replaced
51:5253c891a360 | 55:4edb942e9dff |
---|---|
1 | |
2 Structure of a session: | |
3 | |
4 | |
5 session { | |
6 -- properties -- | |
7 conn -- the tcp connection | |
8 notopen -- true if stream has not been initiated, removed after receiving <stream:steam> | |
9 priority -- the resource priority, default: 0 | |
10 type -- the connection type. Valid values include: | |
11 -- "c2s_unauthed" - connection has not been authenticated yet | |
12 -- "c2s" - from a local client to the server | |
13 username -- the node part of the client's jid (not defined before auth) | |
14 host -- the host part of the client's jid (not defined before stream initiation) | |
15 resource -- the resource part of the client's full jid (not defined before resource binding) | |
16 | |
17 -- methods -- | |
18 send(x) -- converts x to a string, and writes it to the connection | |
19 } |