jabberd2  2.3.4
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 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...
 

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
static void _sx_ack_features ( sx_t  s,
sx_plugin_t  p,
nad_t  nad 
)
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 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 
)

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().