handle packets intended for the server: administration, public IQ (agents, etc) More...
#include "jsm.h"Functions | |
| void | js_server_main (void *arg) |
handle packets intended for the server: administration, public IQ (agents, etc)
| void js_server_main | ( | void * | arg | ) |
handle a packet addressed to the server itself (no node part in the JID)
Pass the packet to the modules, that registered for the e_SERVER event. If none of the modules handled the packet, it is bounced as "not-found".
| arg | jpq structure containing the session manager instance data and the packet |
References e_SERVER, jpacket_struct::from, js_bounce_xmpp(), js_islocal(), js_mapi_call(), js_user(), log_debug2, LOGT_DELIVER, jpq_struct::p, udata_struct::ref, jpq_struct::si, jpacket_struct::x, xmlnode_serialize_string(), XTERROR_NOTFOUND, and ZONE.
1.6.1