#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include "../../sr_module.h"
#include "xmpp.h"
#include "xmpp_api.h"
#include "network.h"
#include "xode.h"

Go to the source code of this file.
Data Structures | |
| struct | xmpp_private_data |
Functions | |
| static int | do_send_bulk_message_component (struct xmpp_private_data *priv, struct xmpp_pipe_cmd *cmd) |
| static int | do_send_message_component (struct xmpp_private_data *priv, struct xmpp_pipe_cmd *cmd) |
| static void | stream_node_callback (int type, xode node, void *arg) |
| int | xmpp_component_child_process (int data_pipe) |
| static int | xode_send (int fd, xode x) |
Definition in file xmpp_component.c.
| static int do_send_bulk_message_component | ( | struct xmpp_private_data * | priv, | |
| struct xmpp_pipe_cmd * | cmd | |||
| ) | [static] |
Definition at line 173 of file xmpp_component.c.
References xmpp_pipe_cmd::body, xmpp_private_data::fd, xmpp_pipe_cmd::from, len, LM_DBG, LM_ERR, net_send(), and xmpp_pipe_cmd::to.
Referenced by xmpp_component_child_process().
| static int do_send_message_component | ( | struct xmpp_private_data * | priv, | |
| struct xmpp_pipe_cmd * | cmd | |||
| ) | [static] |
Definition at line 151 of file xmpp_component.c.
References xmpp_pipe_cmd::body, decode_uri_sip_xmpp(), encode_uri_sip_xmpp(), xmpp_private_data::fd, xmpp_pipe_cmd::from, xmpp_pipe_cmd::id, LM_DBG, xmpp_pipe_cmd::to, xode_free(), xode_insert_cdata(), xode_insert_tag(), xode_new_tag(), xode_put_attrib(), and xode_send().
Referenced by xmpp_component_child_process().
| static void stream_node_callback | ( | int | type, | |
| xode | node, | |||
| void * | arg | |||
| ) | [static] |
Definition at line 78 of file xmpp_component.c.
References buf, decode_uri_xmpp_sip(), encode_uri_xmpp_sip(), xmpp_private_data::fd, hash, id, LM_DBG, LM_ERR, run_xmpp_callbacks(), xmpp_private_data::running, shahash(), snprintf, xmpp_password, XMPP_RCV_IQ, XMPP_RCV_PRESENCE, xmpp_send_sip_msg(), xode_free(), xode_get_attrib(), xode_get_data(), xode_get_name(), xode_get_tag(), xode_insert_cdata(), xode_new_tag(), xode_send(), XODE_STREAM_CLOSE, XODE_STREAM_ERROR, XODE_STREAM_NODE, XODE_STREAM_ROOT, and xode_to_str().
Referenced by xmpp_component_child_process().
| int xmpp_component_child_process | ( | int | data_pipe | ) |
Definition at line 189 of file xmpp_component.c.
References buf, do_send_bulk_message_component(), do_send_message_component(), xmpp_private_data::fd, LM_DBG, LM_ERR, net_connect(), net_printf(), net_read_static(), NULL, pool, xmpp_private_data::running, stream_node_callback(), xmpp_pipe_cmd::type, xmpp_domain, xmpp_free_pipe_cmd(), xmpp_host, XMPP_PIPE_SEND_MESSAGE, XMPP_PIPE_SEND_PACKET, XMPP_PIPE_SEND_PNOTIFY, XMPP_PIPE_SEND_PSUBSCRIBE, xmpp_port, xode_pool_free(), xode_pool_new(), xode_stream_eat(), and xode_stream_new().
Referenced by xmpp_process().
| static int xode_send | ( | int | fd, | |
| xode | x | |||
| ) | [static] |
Definition at line 63 of file xmpp_component.c.
References len, LM_DBG, LM_ERR, net_send(), and xode_to_str().
Referenced by do_send_message_component(), in_stream_node_callback(), out_stream_node_callback(), stream_node_callback(), and xode_send_domain().
1.5.6