jabberd2  2.3.2
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

void _sx_process_read ( sx_t  s,
sx_buf_t  buf 
)
int sx_can_read ( sx_t  s)
static int _sx_get_pending_write ( sx_t  s)
static
int sx_can_write ( sx_t  s)
int _sx_nad_write ( sx_t  s,
nad_t  nad,
int  elem 
)
void sx_nad_write_elem ( sx_t  s,
nad_t  nad,
int  elem 
)

app version

sending a nad

Definition at line 420 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().

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

send raw data out

Definition at line 435 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().

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

void _sx_close ( sx_t  s)
void sx_close ( sx_t  s)
void sx_kill ( sx_t  s)