jabberd2  2.2.17
Macros | Functions
ack.c File Reference
#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
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

Macro Definition Documentation

#define STREAM_ACK_NS_DECL   " xmlns:ack='" uri_ACK "'"

Definition at line 26 of file ack.c.

Referenced by _sx_ack_header().


Function Documentation

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 _sx_buffer_alloc_margin(), _sx_buf_st::data, _sx_buf_st::len, log_debug, STREAM_ACK_NS_DECL, and ZONE.

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_plugin_st::index, nad_append_elem(), _sx_st::plugin_data, _sx_st::state, and state_OPEN.

Referenced by sx_ack_init().

static int _sx_ack_process ( sx_t  s,
sx_plugin_t  p,
nad_t  nad 
)
static
int sx_ack_init ( sx_env_t  env,
sx_plugin_t  p,
va_list  args 
)