jabberd2  2.6.1
Functions
io.c File Reference
#include "sx.h"

Go to the source code of this file.

Functions

void _sx_process_read (sx_t s, sx_buf_t buf)
 handler for read data More...
 
int sx_can_read (sx_t s)
 we can read More...
 
static int _sx_get_pending_write (sx_t s)
 we can write More...
 
int sx_can_write (sx_t s)
 
int _sx_nad_write (sx_t s, nad_t nad, int elem)
 send a new nad out More...
 
void sx_nad_write_elem (sx_t s, nad_t nad, int elem)
 app version More...
 
int _sx_raw_write (sx_t s, const char *buf, int len)
 send raw data out More...
 
void sx_raw_write (sx_t s, const char *buf, int len)
 app version More...
 
void _sx_close (sx_t s)
 close a stream More...
 
void sx_close (sx_t s)
 
void sx_kill (sx_t s)
 

Function Documentation

◆ _sx_process_read()

void _sx_process_read ( sx_t  s,
sx_buf_t  buf 
)

◆ sx_can_read()

int sx_can_read ( sx_t  s)

◆ _sx_get_pending_write()

static int _sx_get_pending_write ( sx_t  s)
static

◆ sx_can_write()

int sx_can_write ( sx_t  s)

◆ _sx_nad_write()

int _sx_nad_write ( sx_t  s,
nad_t  nad,
int  elem 
)

◆ sx_nad_write_elem()

void sx_nad_write_elem ( sx_t  s,
nad_t  nad,
int  elem 
)

app version

sending a nad

Definition at line 449 of file io.c.

References _sx_event, _sx_nad_write(), event_WANT_READ, event_WANT_WRITE, _sx_st::want_read, and _sx_st::want_write.

Referenced by _router_comp_write(), c2s_router_sx_callback(), and out_packet().

◆ _sx_raw_write()

int _sx_raw_write ( sx_t  s,
const char *  buf,
int  len 
)

send raw data out

Definition at line 464 of file io.c.

References _sx_buffer_new(), _sx_debug, jqueue_push(), log_debug, _sx_st::state, state_CLOSING, _sx_st::want_write, _sx_st::wbufq, and ZONE.

Referenced by sx_raw_write().

◆ sx_raw_write()

JABBERD2_API void sx_raw_write ( sx_t  s,
const char *  buf,
int  len 
)

app version

sending raw data

sending raw data (internal)

Definition at line 483 of file io.c.

References _sx_event, _sx_raw_write(), event_WANT_READ, event_WANT_WRITE, _sx_st::want_read, and _sx_st::want_write.

Referenced by _c2s_time_checks(), _router_time_checks(), and _s2s_time_checks().

◆ _sx_close()

void _sx_close ( sx_t  s)

◆ sx_close()

void sx_close ( sx_t  s)

◆ sx_kill()

void sx_kill ( sx_t  s)