Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 5013:ab693eea0869
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Jul 2012 04:33:17 +0200 |
parent | 4996:164dc19519d8 |
child | 5097:6c52a7a881cc |
comparison
equal
deleted
inserted
replaced
5012:d59c842fe38e | 5013:ab693eea0869 |
---|---|
26 local c2s_timeout = module:get_option_number("c2s_timeout"); | 26 local c2s_timeout = module:get_option_number("c2s_timeout"); |
27 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); | 27 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); |
28 local opt_keepalives = module:get_option_boolean("tcp_keepalives", false); | 28 local opt_keepalives = module:get_option_boolean("tcp_keepalives", false); |
29 | 29 |
30 local sessions = module:shared("sessions"); | 30 local sessions = module:shared("sessions"); |
31 local core_process_stanza = prosody.core_process_stanza; | |
31 | 32 |
32 local stream_callbacks = { default_ns = "jabber:client", handlestanza = core_process_stanza }; | 33 local stream_callbacks = { default_ns = "jabber:client", handlestanza = core_process_stanza }; |
33 local listener = {}; | 34 local listener = {}; |
34 | 35 |
35 --- Stream events handlers | 36 --- Stream events handlers |