jabberd2
2.2.16
|
#include "sx.h"
Go to the source code of this file.
Functions | |
void | _sx_error (sx_t s, int err, const char *text) |
send an error | |
void | sx_error (sx_t s, int err, const char *text) |
void | _sx_error_extended (sx_t s, int err, const char *content) |
void | sx_error_extended (sx_t s, int err, const char *content) |
Variables | |
static const char * | _stream_errors [] |
if you change these, reflect your changes in the defines in sx.h |
void _sx_error | ( | sx_t | s, |
int | err, | ||
const char * | text | ||
) |
send an error
Definition at line 53 of file error.c.
References _sx_st::state, state_STREAM, uri_STREAMS, uri_STREAM_ERR, _stream_errors, _sx_buffer_new(), _sx_buf_st::data, _sx_buf_st::len, _sx_debug, ZONE, jqueue_push(), _sx_st::wbufq, and _sx_st::want_write.
Referenced by _sx_client_element_start(), sx_error(), _sx_process_read(), and _sx_server_element_start().
void sx_error | ( | sx_t | s, |
int | err, | ||
const char * | text | ||
) |
Definition at line 88 of file error.c.
References stream_err_LAST, _sx_error(), _sx_event, and event_WANT_WRITE.
Referenced by _c2s_client_sx_callback(), c2s_router_sx_callback(), _c2s_time_checks(), _s2s_check_conn_routes(), _s2s_time_checks(), JABBER_MAIN(), _router_process_handshake(), _router_sx_callback(), _out_result(), _out_verify(), _sx_compress_wio(), _sx_compress_rio(), _sx_ssl_handshake(), _sx_ssl_wio(), and _sx_ssl_rio().
void _sx_error_extended | ( | sx_t | s, |
int | err, | ||
const char * | content | ||
) |
Definition at line 99 of file error.c.
References _sx_st::state, state_STREAM, uri_STREAMS, uri_STREAM_ERR, _stream_errors, _sx_buffer_new(), _sx_buf_st::data, _sx_buf_st::len, _sx_debug, ZONE, jqueue_push(), _sx_st::wbufq, and _sx_st::want_write.
Referenced by sx_error_extended().
void sx_error_extended | ( | sx_t | s, |
int | err, | ||
const char * | content | ||
) |
Definition at line 134 of file error.c.
References stream_err_LAST, _sx_error_extended(), _sx_event, and event_WANT_WRITE.
Referenced by _c2s_client_sx_callback().
const char* _stream_errors[] [static] |
if you change these, reflect your changes in the defines in sx.h
Definition at line 24 of file error.c.
Referenced by _sx_error(), and _sx_error_extended().