jabberd2
2.3.1
|
#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 More... | |
static nad_t | _sm_build_route (sess_t sess, bres_t res, const char *action, const char *target, const char *id) |
make a new action route More... | |
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 bres_st::jid, jid_full(), shahash_r(), and bres_st::sm_request.
Referenced by sm_create(), and sm_start().
|
static |
make a new action route
Definition at line 34 of file sm.c.
References sess_st::c2s, bres_st::c2s_id, jid_st::domain, c2s_st::id, bres_st::jid, jid_full(), log_debug, nad_add_namespace(), nad_append_attr(), nad_append_elem(), nad_new(), bres_st::sm_id, sess_st::smcomp, uri_COMPONENT, uri_SESSION, and ZONE.
Referenced by sm_create(), sm_delete(), sm_end(), and sm_start().
Definition at line 66 of file sm.c.
References _sm_build_route(), _sm_generate_id(), sess_st::c2s, bres_st::jid, jid_full(), c2s_st::router, bres_st::sm_request, and sx_nad_write.
Referenced by _authreg_auth_set(), _c2s_client_sx_callback(), and _pbx_process_command().
Definition at line 72 of file sm.c.
References _sm_build_route(), sess_st::c2s, c2s_st::router, and sx_nad_write.
Referenced by _c2s_client_mio_callback(), _c2s_client_sx_callback(), _pbx_process_command(), and c2s_router_sx_callback().
Definition at line 76 of file sm.c.
References _sm_build_route(), _sm_generate_id(), sess_st::c2s, bres_st::jid, jid_user(), c2s_st::router, bres_st::sm_request, and sx_nad_write.
Referenced by _authreg_register_set().
Definition at line 82 of file sm.c.
References _sm_build_route(), sess_st::c2s, bres_st::jid, jid_user(), c2s_st::router, and sx_nad_write.
Referenced by _authreg_register_set().
Definition at line 86 of file sm.c.
References sess_st::c2s, bres_st::c2s_id, jid_st::domain, c2s_st::id, bres_st::jid, nad_add_namespace(), nad_append_namespace(), nad_set_attr(), nad_wrap_elem(), c2s_st::router, bres_st::sm_id, sess_st::smcomp, sx_nad_write, uri_COMPONENT, and uri_SESSION.
Referenced by _c2s_client_sx_callback(), _pbx_process_command(), and c2s_router_sx_callback().