jabberd2
2.2.16
|
#include "c2s.h"
Go to the source code of this file.
Functions | |
static void | _sm_generate_id (sess_t sess, bres_t res, const char *type) |
generate a new session request id | |
static nad_t | _sm_build_route (sess_t sess, bres_t res, const char *action, const char *target, char *id) |
make a new action route | |
void | sm_start (sess_t sess, bres_t res) |
void | sm_end (sess_t sess, bres_t res) |
void | sm_create (sess_t sess, bres_t res) |
void | sm_delete (sess_t sess, bres_t res) |
void | sm_packet (sess_t sess, bres_t res, nad_t nad) |
generate a new session request id
Definition at line 24 of file sm.c.
References jid_full(), bres_st::jid, shahash_r(), and bres_st::sm_request.
Referenced by sm_start(), and sm_create().
static nad_t _sm_build_route | ( | sess_t | sess, |
bres_t | res, | ||
const char * | action, | ||
const char * | target, | ||
char * | id | ||
) | [static] |
make a new action route
Definition at line 34 of file sm.c.
References nad_new(), nad_add_namespace(), uri_COMPONENT, nad_append_elem(), nad_append_attr(), sess_st::smcomp, bres_st::jid, jid_st::domain, sess_st::c2s, c2s_st::id, uri_SESSION, bres_st::c2s_id, bres_st::sm_id, log_debug, ZONE, and jid_full().
Referenced by sm_start(), sm_end(), sm_create(), and sm_delete().
Definition at line 66 of file sm.c.
References _sm_generate_id(), sx_nad_write, sess_st::c2s, c2s_st::router, _sm_build_route(), jid_full(), bres_st::jid, and bres_st::sm_request.
Referenced by _authreg_auth_set(), _c2s_client_sx_callback(), and _pbx_process_command().
Definition at line 72 of file sm.c.
References sx_nad_write, sess_st::c2s, c2s_st::router, and _sm_build_route().
Referenced by _c2s_client_sx_callback(), _c2s_client_mio_callback(), c2s_router_sx_callback(), and _pbx_process_command().
Definition at line 76 of file sm.c.
References _sm_generate_id(), sx_nad_write, sess_st::c2s, c2s_st::router, _sm_build_route(), jid_user(), bres_st::jid, and bres_st::sm_request.
Referenced by _authreg_register_set().
Definition at line 82 of file sm.c.
References sx_nad_write, sess_st::c2s, c2s_st::router, _sm_build_route(), jid_user(), and bres_st::jid.
Referenced by _authreg_register_set().
Definition at line 86 of file sm.c.
References nad_add_namespace(), uri_COMPONENT, nad_wrap_elem(), nad_set_attr(), sess_st::smcomp, bres_st::jid, jid_st::domain, sess_st::c2s, c2s_st::id, nad_append_namespace(), uri_SESSION, bres_st::c2s_id, bres_st::sm_id, sx_nad_write, and c2s_st::router.
Referenced by _c2s_client_sx_callback(), c2s_router_sx_callback(), and _pbx_process_command().