jabberd2  2.2.16
Defines | Functions
sx/ack.c File Reference
#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 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 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]
int sx_ack_init ( sx_env_t  env,
sx_plugin_t  p,
va_list  args 
)