jabberd2  2.3.3
Functions
router.c File Reference
#include "s2s.h"

Go to the source code of this file.

Functions

int s2s_router_sx_callback (sx_t s, sx_event_t e, void *data, void *arg)
 our master callback More...
 
int s2s_router_mio_callback (mio_t m, mio_action_t a, mio_fd_t fd, void *data, void *arg)
 

Function Documentation

int s2s_router_sx_callback ( sx_t  s,
sx_event_t  e,
void *  data,
void *  arg 
)

our master callback

Definition at line 24 of file router.c.

References _stanza_errors, _sx_error_st::code, _stanza_error_st::code, _sx_buf_st::data, pkt_st::db, event_CLOSED, event_ERROR, event_OPEN, event_PACKET, event_READ, event_STREAM, event_WANT_READ, event_WANT_WRITE, event_WRITE, s2s_st::fd, mio_fd_st::fd, pkt_st::from, _sx_error_st::generic, s2s_st::id, in_mio_callback(), jid_new(), _sx_buf_st::len, s2s_st::local_ip, s2s_st::local_port, s2s_st::log, log_debug, log_write(), s2s_st::mio, mio_close, MIO_ERROR, mio_listen, mio_read, MIO_STRERROR, MIO_WOULDBLOCK, mio_write, pkt_st::nad, nad_add_namespace(), nad_append_attr(), nad_append_elem(), NAD_AVAL, NAD_AVAL_L, NAD_ENAME, NAD_ENAME_L, NAD_ENS, nad_find_attr(), nad_find_elem(), nad_find_scoped_namespace(), nad_free(), nad_new(), NAD_NURI, NAD_NURI_L, nad_set_attr(), s2s_st::online, out_packet(), s2s_st::retry_left, s2s_st::retry_lost, s2s_st::router, s2s_st::router_default, s2s_st::router_pass, s2s_st::router_pemfile, s2s_st::router_private_key_password, s2s_st::router_user, s2s_st::server_fd, _sx_error_st::specific, _sx_st::ssf, stanza_err_BAD_REQUEST, stanza_err_REMOTE_SERVER_NOT_FOUND, stanza_error(), stanza_tofrom(), s2s_st::started, _sx_st::state, state_OPEN, state_STREAM, sx_close(), SX_ERR_AUTH, sx_kill(), sx_nad_write, s2s_st::sx_sasl, sx_sasl_auth(), s2s_st::sx_ssl, sx_ssl_client_starttls(), pkt_st::to, uri_COMPONENT, uri_DIALBACK, uri_DIALBACK_L, uri_STREAMS, uri_TLS, and ZONE.

Referenced by _s2s_router_connect().

int s2s_router_mio_callback ( mio_t  m,
mio_action_t  a,
mio_fd_t  fd,
void *  data,
void *  arg 
)