jabberd2  2.3.1
Functions
compress.c File Reference
#include "sx.h"

Go to the source code of this file.

Functions

static void _sx_compress_notify_compress (sx_t s, void *arg)
 this plugin implements the XEP-0138: Stream Compression More...
 
static int _sx_compress_process (sx_t s, sx_plugin_t p, nad_t nad)
 
static void _sx_compress_features (sx_t s, sx_plugin_t p, nad_t nad)
 
static int _sx_compress_wio (sx_t s, sx_plugin_t p, sx_buf_t buf)
 
static int _sx_compress_rio (sx_t s, sx_plugin_t p, sx_buf_t buf)
 
static void _sx_compress_new (sx_t s, sx_plugin_t p)
 
static void _sx_compress_free (sx_t s, sx_plugin_t p)
 cleanup More...
 
int sx_compress_init (sx_env_t env, sx_plugin_t p, va_list args)
 args: none More...
 
int sx_compress_client_compress (sx_plugin_t p, sx_t s, const char *pemfile)
 

Function Documentation

static void _sx_compress_notify_compress ( sx_t  s,
void *  arg 
)
static

this plugin implements the XEP-0138: Stream Compression

Definition at line 25 of file compress.c.

References _sx_debug, _sx_reset(), _sx_st::flags, SX_COMPRESS_WRAPPER, sx_server_init(), and ZONE.

Referenced by _sx_compress_process().

static int _sx_compress_process ( sx_t  s,
sx_plugin_t  p,
nad_t  nad 
)
static
static void _sx_compress_features ( sx_t  s,
sx_plugin_t  p,
nad_t  nad 
)
static
static int _sx_compress_wio ( sx_t  s,
sx_plugin_t  p,
sx_buf_t  buf 
)
static
static int _sx_compress_rio ( sx_t  s,
sx_plugin_t  p,
sx_buf_t  buf 
)
static
static void _sx_compress_new ( sx_t  s,
sx_plugin_t  p 
)
static
static void _sx_compress_free ( sx_t  s,
sx_plugin_t  p 
)
static

cleanup

Definition at line 304 of file compress.c.

References _sx_buffer_free(), _sx_plugin_st::index, log_debug, _sx_st::plugin_data, _sx_st::type, type_NONE, and ZONE.

Referenced by sx_compress_init().

int sx_compress_init ( sx_env_t  env,
sx_plugin_t  p,
va_list  args 
)
int sx_compress_client_compress ( sx_plugin_t  p,
sx_t  s,
const char *  pemfile 
)