jabberd2
2.2.16
|
#include "sx.h"
Go to the source code of this file.
Defines | |
#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 | |
static int | _sx_ack_process (sx_t s, sx_plugin_t p, nad_t nad) |
process handshake packets from the client | |
int | sx_ack_init (sx_env_t env, sx_plugin_t p, va_list args) |
args: none |
#define STREAM_ACK_NS_DECL " xmlns:ack='" uri_ACK "'" |
Definition at line 26 of file ack.c.
Referenced by _sx_ack_header().
static void _sx_ack_header | ( | sx_t | s, |
sx_plugin_t | p, | ||
sx_buf_t | buf | ||
) | [static] |
Definition at line 28 of file ack.c.
References log_debug, ZONE, _sx_buffer_alloc_margin(), STREAM_ACK_NS_DECL, _sx_buf_st::data, and _sx_buf_st::len.
Referenced by sx_ack_init().
static void _sx_ack_features | ( | sx_t | s, |
sx_plugin_t | p, | ||
nad_t | nad | ||
) | [static] |
sx features callback
Definition at line 41 of file ack.c.
References _sx_st::state, state_OPEN, _sx_st::plugin_data, _sx_plugin_st::index, and nad_append_elem().
Referenced by sx_ack_init().
static int _sx_ack_process | ( | sx_t | s, |
sx_plugin_t | p, | ||
nad_t | nad | ||
) | [static] |
process handshake packets from the client
Definition at line 48 of file ack.c.
References _sx_st::type, type_SERVER, NAD_ENS, NAD_NURI_L, uri_ACK, NAD_NURI, NAD_ENAME_L, NAD_ENAME, jqueue_push(), _sx_st::wbufq, _sx_buffer_new(), _sx_st::want_write, nad_free(), _sx_st::state, state_OPEN, _sx_st::plugin_data, _sx_plugin_st::index, nad_find_attr(), NAD_AVAL_L, NAD_AVAL, _sx_debug, and ZONE.
Referenced by sx_ack_init().
int sx_ack_init | ( | sx_env_t | env, |
sx_plugin_t | p, | ||
va_list | args | ||
) |
args: none
Definition at line 103 of file ack.c.
References log_debug, ZONE, _sx_plugin_st::header, _sx_ack_header(), _sx_plugin_st::features, _sx_ack_features(), _sx_plugin_st::process, and _sx_ack_process().
Referenced by JABBER_MAIN().