jabberd2
2.3.6
|
#include "sx.h"
Go to the source code of this file.
Macros | |
#define | STREAM_ACK_NS_DECL " xmlns:ack='" uri_ACK "'" |
Functions | |
static void | _sx_ack_header (sx_t s, sx_plugin_t p, sx_buf_t buf) |
static void | _sx_ack_features (sx_t s, sx_plugin_t p, nad_t nad) |
sx features callback More... | |
static int | _sx_ack_process (sx_t s, sx_plugin_t p, nad_t nad) |
process handshake packets from the client More... | |
int | sx_ack_init (sx_env_t env, sx_plugin_t p, va_list args) |
args: none More... | |
#define STREAM_ACK_NS_DECL " xmlns:ack='" uri_ACK "'" |
Definition at line 26 of file ack.c.
Referenced by _sx_ack_header().
|
static |
Definition at line 28 of file ack.c.
References _sx_buffer_alloc_margin(), _sx_buf_st::data, _sx_st::flags, _sx_buf_st::len, log_debug, STREAM_ACK_NS_DECL, SX_WEBSOCKET_WRAPPER, and ZONE.
Referenced by sx_ack_init().
|
static |
sx features callback
Definition at line 45 of file ack.c.
References _sx_st::flags, _sx_plugin_st::index, nad_append_elem(), _sx_st::plugin_data, _sx_st::state, state_OPEN, and SX_WEBSOCKET_WRAPPER.
Referenced by sx_ack_init().
|
static |
process handshake packets from the client
Definition at line 52 of file ack.c.
References _sx_buffer_new(), _sx_debug, _sx_st::flags, _sx_plugin_st::index, jqueue_push(), NAD_AVAL, NAD_AVAL_L, NAD_ENAME, NAD_ENAME_L, NAD_ENS, nad_find_attr(), nad_free(), NAD_NURI, NAD_NURI_L, _sx_st::plugin_data, _sx_st::state, state_OPEN, SX_WEBSOCKET_WRAPPER, _sx_st::type, type_SERVER, uri_ACK, _sx_st::want_write, _sx_st::wbufq, and ZONE.
Referenced by sx_ack_init().
int sx_ack_init | ( | sx_env_t | env, |
sx_plugin_t | p, | ||
va_list | args | ||
) |
args: none
init function
Definition at line 107 of file ack.c.
References _sx_ack_features(), _sx_ack_header(), _sx_ack_process(), _sx_plugin_st::features, _sx_plugin_st::header, log_debug, _sx_plugin_st::process, and ZONE.
Referenced by JABBER_MAIN().