
Go to the source code of this file.
Data Structures | |
| struct | xmpp_pipe_cmd |
Enumerations | |
| enum | xmpp_pipe_cmd_type { XMPP_PIPE_SEND_PACKET = 1, XMPP_PIPE_SEND_MESSAGE = 2, XMPP_PIPE_SEND_PSUBSCRIBE = 4, XMPP_PIPE_SEND_PNOTIFY = 8 } |
Functions | |
| char * | db_key (char *secret, char *domain, char *id) |
| char * | extract_domain (char *jid) |
| char * | random_secret (void) |
| char * | shahash (const char *str) |
| int | xmpp_component_child_process (int data_pipe) |
| void | xmpp_free_pipe_cmd (struct xmpp_pipe_cmd *cmd) |
| int | xmpp_send_sip_msg (char *from, char *to, char *msg) |
| Relay a MESSAGE to a SIP client. | |
| int | xmpp_server_child_process (int data_pipe) |
Variables | |
| char | domain_separator |
| char * | gateway_domain |
| char * | xmpp_domain |
| char * | xmpp_host |
| char * | xmpp_password |
| int | xmpp_port |
Definition in file xmpp.h.
| enum xmpp_pipe_cmd_type |
| char* db_key | ( | char * | secret, | |
| char * | domain, | |||
| char * | id | |||
| ) |
Definition at line 151 of file util.c.
References buf, hash, shahash(), and snprintf.
Referenced by in_stream_node_callback(), and out_stream_node_callback().
| char* extract_domain | ( | char * | jid | ) |
| char* random_secret | ( | void | ) |
Definition at line 137 of file util.c.
References secret.
Referenced by in_stream_node_callback(), and xmpp_server_child_process().
| char* shahash | ( | const char * | str | ) |
Definition at line 201 of file jabber/sha.c.
References INT64, sha_hash(), sha_init(), and strprintsha().
Referenced by db_key(), stream_node_callback(), and xj_jcon_user_auth().
| 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().
| void xmpp_free_pipe_cmd | ( | struct xmpp_pipe_cmd * | cmd | ) |
Definition at line 305 of file xmpp.c.
References xmpp_pipe_cmd::body, xmpp_pipe_cmd::from, xmpp_pipe_cmd::id, shm_free, and xmpp_pipe_cmd::to.
Referenced by xmpp_component_child_process(), xmpp_send_pipe_cmd(), and xmpp_server_child_process().
| int xmpp_send_sip_msg | ( | char * | from, | |
| char * | to, | |||
| char * | msg | |||
| ) |
Relay a MESSAGE to a SIP client.
< Type of the message
< Request-URI
< To
< From
< Optional headers
< Message body
< Callback function
< Callback parameter
Definition at line 259 of file xmpp.c.
References buf, CRLF, _str::len, msg_type, NULL, _str::s, snprintf, tm_binds::t_request, and tmb.
Referenced by in_stream_node_callback(), and stream_node_callback().
| int xmpp_server_child_process | ( | int | data_pipe | ) |
Definition at line 450 of file xmpp_server.c.
References buf, CONN_DEAD, conn_free(), CONN_INBOUND, conn_new(), CONN_OUTBOUND, do_send_message_server(), xmpp_connection::domain, xmpp_connection::fd, len, LM_DBG, LM_ERR, local_secret, net_connect(), net_listen(), net_printf(), net_read_static(), xmpp_connection::next, NULL, random_secret(), snprintf, xmpp_connection::stream, xmpp_pipe_cmd::type, xmpp_connection::type, xmpp_domain, xmpp_free_pipe_cmd(), XMPP_PIPE_SEND_MESSAGE, XMPP_PIPE_SEND_PACKET, XMPP_PIPE_SEND_PNOTIFY, XMPP_PIPE_SEND_PSUBSCRIBE, xmpp_port, and xode_stream_eat().
Referenced by xmpp_process().
| char domain_separator |
Definition at line 135 of file xmpp.c.
Referenced by decode_uri_sip_xmpp(), decode_uri_xmpp_sip(), encode_uri_sip_xmpp(), encode_uri_xmpp_sip(), and mod_init().
| char* gateway_domain |
| char* xmpp_domain |
Definition at line 137 of file xmpp.c.
Referenced by encode_uri_sip_xmpp(), in_stream_node_callback(), out_stream_node_callback(), xmpp_component_child_process(), and xmpp_server_child_process().
| char* xmpp_host |
| char* xmpp_password |
| int xmpp_port |
Definition at line 139 of file xmpp.c.
Referenced by mod_init(), xmpp_component_child_process(), and xmpp_server_child_process().
1.5.6