jabberd2
2.2.16
|
xmpp ping More...
#include "sm.h"
Go to the source code of this file.
Functions | |
void | _iq_ping_reply (pkt_t pkt) |
static mod_ret_t | _iq_ping_in_sess (mod_instance_t mi, sess_t sess, pkt_t pkt) |
static mod_ret_t | _iq_ping_pkt_sm (mod_instance_t mi, pkt_t pkt) |
static void | _iq_ping_free (module_t mod) |
DLLEXPORT int | module_init (mod_instance_t mi, char *arg) |
Variables | |
static int | ns_PING = 0 |
void _iq_ping_reply | ( | pkt_t | pkt | ) |
Definition at line 32 of file mod_iq_ping.c.
References nad_find_scoped_namespace(), pkt_st::nad, urn_PING, nad_find_elem(), nad_drop_elem(), and nad_set_attr().
Referenced by _iq_ping_in_sess(), and _iq_ping_pkt_sm().
static mod_ret_t _iq_ping_in_sess | ( | mod_instance_t | mi, |
sess_t | sess, | ||
pkt_t | pkt | ||
) | [static] |
Definition at line 45 of file mod_iq_ping.c.
References pkt_st::to, pkt_st::type, pkt_IQ, pkt_st::ns, ns_PING, mod_PASS, _iq_ping_reply(), pkt_sess(), and mod_HANDLED.
Referenced by module_init().
static mod_ret_t _iq_ping_pkt_sm | ( | mod_instance_t | mi, |
pkt_t | pkt | ||
) | [static] |
Definition at line 53 of file mod_iq_ping.c.
References pkt_st::type, pkt_IQ, pkt_st::ns, ns_PING, mod_PASS, _iq_ping_reply(), pkt_router(), pkt_tofrom(), and mod_HANDLED.
Referenced by module_init().
static void _iq_ping_free | ( | module_t | mod | ) | [static] |
Definition at line 61 of file mod_iq_ping.c.
References sm_unregister_ns(), module_st::mm, mm_st::sm, urn_PING, and feature_unregister().
Referenced by module_init().
DLLEXPORT int module_init | ( | mod_instance_t | mi, |
char * | arg | ||
) |
Definition at line 66 of file mod_iq_ping.c.
References mod_instance_st::mod, module_st::init, module_st::in_sess, _iq_ping_in_sess(), module_st::pkt_sm, _iq_ping_pkt_sm(), module_st::free, _iq_ping_free(), ns_PING, sm_register_ns(), module_st::mm, mm_st::sm, urn_PING, and feature_register().
int ns_PING = 0 [static] |
Definition at line 30 of file mod_iq_ping.c.
Referenced by _iq_ping_in_sess(), _iq_ping_pkt_sm(), and module_init().