xmpp_server.c File Reference

Kamailio XMPP :: XMPP server implementation (limited functionality). More...

#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"
#include <arpa/inet.h>

Include dependency graph for xmpp_server.c:

Go to the source code of this file.

Data Structures

struct  xmpp_connection
struct  xmpp_private_data

Defines

#define CONN_DEAD   0
#define CONN_INBOUND   1
#define CONN_OUTBOUND   2
#define DB_KEY   "this-be-a-random-key"

Functions

static struct xmpp_connectionconn_find_domain (char *domain, int type)
static void conn_free (struct xmpp_connection *conn)
static struct xmpp_connectionconn_new (int type, int fd, char *domain)
static void do_send_message_server (struct xmpp_pipe_cmd *cmd)
static void in_stream_node_callback (int type, xode node, void *arg)
static void out_stream_node_callback (int type, xode node, void *arg)
int xmpp_server_child_process (int data_pipe)
static int xode_send (int fd, xode x)
static int xode_send_domain (char *domain, xode x)

Variables

static struct xmpp_connectionconn_list = NULL
static char local_secret [64] = { 0, }


Detailed Description

Kamailio XMPP :: XMPP server implementation (limited functionality).

Definition in file xmpp_server.c.


Define Documentation

#define CONN_DEAD   0

#define CONN_INBOUND   1

Definition at line 106 of file xmpp_server.c.

Referenced by conn_new(), out_stream_node_callback(), and xmpp_server_child_process().

#define CONN_OUTBOUND   2

Definition at line 107 of file xmpp_server.c.

Referenced by xmpp_server_child_process(), and xode_send_domain().

#define DB_KEY   "this-be-a-random-key"

Definition at line 103 of file xmpp_server.c.


Function Documentation

static struct xmpp_connection* conn_find_domain ( char *  domain,
int  type 
) [static, read]

static void conn_free ( struct xmpp_connection conn  )  [static]

static struct xmpp_connection* conn_new ( int  type,
int  fd,
char *  domain 
) [static, read]

static void do_send_message_server ( struct xmpp_pipe_cmd cmd  )  [static]

static void in_stream_node_callback ( int  type,
xode  node,
void *  arg 
) [static]

static void out_stream_node_callback ( int  type,
xode  node,
void *  arg 
) [static]

int xmpp_server_child_process ( int  data_pipe  ) 

static int xode_send ( int  fd,
xode  x 
) [static]

Definition at line 213 of file xmpp_server.c.

References len, LM_DBG, LM_ERR, net_send(), and xode_to_str().

static int xode_send_domain ( char *  domain,
xode  x 
) [static]


Variable Documentation

struct xmpp_connection* conn_list = NULL [static]

Definition at line 133 of file xmpp_server.c.

char local_secret[64] = { 0, } [static]


Generated on Fri May 25 00:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6