jabberd2
2.2.16
|
#include "sx.h"
Go to the source code of this file.
Functions | |
static void | _sx_server_notify_header (sx_t s, void *arg) |
static void | _sx_server_element_start (void *arg, const char *name, const char **atts) |
static void | _sx_server_element_end (void *arg, const char *name) |
static void | _sx_server_ns_start (void *arg, const char *prefix, const char *uri) |
catch the application namespace so we can get the response right | |
void | sx_server_init (sx_t s, unsigned int flags) |
static void _sx_server_notify_header | ( | sx_t | s, |
void * | arg | ||
) | [static] |
Definition at line 23 of file server.c.
References _sx_debug, ZONE, _sx_st::env, _sx_env_st::nplugins, _sx_env_st::plugins, _sx_plugin_st::stream, _sx_st::state, state_STREAM, _sx_state, _sx_event, event_STREAM, _sx_st::req_version, nad_new(), nad_add_namespace(), uri_STREAMS, nad_append_elem(), _sx_plugin_st::features, nad_print(), _sx_buffer_new(), nad_free(), jqueue_push(), _sx_st::wbufq, _sx_st::want_write, jqueue_size(), _sx_st::rnadq, state_OPEN, and _sx_process_read().
Referenced by _sx_server_element_start().
static void _sx_server_element_start | ( | void * | arg, |
const char * | name, | ||
const char ** | atts | ||
) | [static] |
Definition at line 76 of file server.c.
References _sx_st::fail, uri_STREAMS, _sx_gen_error, SX_ERR_STREAM, _sx_event, event_ERROR, _sx_error(), stream_err_BAD_FORMAT, _sx_st::req_to, _sx_st::req_from, _sx_st::req_version, _sx_debug, ZONE, stream_err_UNSUPPORTED_VERSION, _sx_state, state_STREAM_RECEIVED, _sx_st::res_from, _sx_st::res_to, _sx_st::res_version, _sx_st::id, _sx_st::ns, _sx_buffer_new(), _sx_server_notify_header(), _sx_buf_st::data, _sx_buf_st::len, _sx_st::env, _sx_env_st::nplugins, _sx_env_st::plugins, _sx_plugin_st::header, jqueue_push(), _sx_st::wbufq, _sx_st::depth, _sx_st::expat, _sx_element_start(), _sx_element_end(), _sx_cdata(), _sx_namespace_start(), and _sx_st::want_write.
Referenced by sx_server_init().
static void _sx_server_element_end | ( | void * | arg, |
const char * | name | ||
) | [static] |
Definition at line 198 of file server.c.
References _sx_st::fail, and _sx_st::depth.
Referenced by sx_server_init().
static void _sx_server_ns_start | ( | void * | arg, |
const char * | prefix, | ||
const char * | uri | ||
) | [static] |
catch the application namespace so we can get the response right
Definition at line 207 of file server.c.
References _sx_st::ns, and _sx_st::expat.
Referenced by sx_server_init().
void sx_server_init | ( | sx_t | s, |
unsigned int | flags | ||
) |
Definition at line 228 of file server.c.
References _sx_st::state, state_NONE, _sx_debug, ZONE, _sx_st::tag, _sx_st::type, type_SERVER, _sx_st::flags, _sx_st::env, _sx_env_st::nplugins, _sx_env_st::plugins, _sx_plugin_st::server, _sx_st::expat, _sx_server_element_start(), _sx_server_element_end(), _sx_server_ns_start(), _sx_st::want_read, _sx_event, and event_WANT_READ.
Referenced by _c2s_client_mio_callback(), router_mio_callback(), in_mio_callback(), _sx_compress_notify_compress(), _sx_sasl_notify_success(), and _sx_ssl_starttls_notify_proceed().