citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
serv_xmpp.c File Reference
#include "../../sysdep.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
#include <time.h>
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
#include <ctype.h>
#include <libcitadel.h>
#include <expat.h>
#include "../../citadel.h"
#include "../../server.h"
#include "../../citserver.h"
#include "../../support.h"
#include "../../config.h"
#include "../../user_ops.h"
#include "../../database.h"
#include "../../msgbase.h"
#include "../../internet_addressing.h"
#include "../../ctdl_module.h"
#include "serv_xmpp.h"
Include dependency graph for serv_xmpp.c:

Go to the source code of this file.

Functions

static int Ctdl_GetUtf8SequenceLength (const char *CharS, const char *CharE)
 
char * xmlesc (char *buf, char *str, int bufsiz)
 
void xmpp_stream_start (void *data, const char *supplied_el, const char **attr)
 
void xmpp_xml_start (void *data, const char *supplied_el, const char **attr)
 
void xmpp_xml_end (void *data, const char *supplied_el)
 
void xmpp_xml_chardata (void *data, const XML_Char *s, int len)
 
void xmpp_cleanup_function (void)
 
void xmpp_greeting (void)
 
void xmpp_command_loop (void)
 
void xmpp_async_loop (void)
 
void xmpp_login_hook (void)
 
void xmpp_logout_hook (void)
 
char * ctdl_module_init_xmpp ()
 

Variables

struct xmpp_eventxmpp_queue = NULL
 
const char * CitadelServiceXMPP ="XMPP"
 

Function Documentation

◆ Ctdl_GetUtf8SequenceLength()

static int Ctdl_GetUtf8SequenceLength ( const char *  CharS,
const char *  CharE 
)
inlinestatic

Definition at line 75 of file serv_xmpp.c.

Referenced by xmlesc().

◆ ctdl_module_init_xmpp()

◆ xmlesc()

◆ xmpp_async_loop()

void xmpp_async_loop ( void  )

Definition at line 631 of file serv_xmpp.c.

References xmpp_output_incoming_messages(), and xmpp_process_events().

Referenced by ctdl_module_init_xmpp(), and xmpp_queue_event().

◆ xmpp_cleanup_function()

void xmpp_cleanup_function ( void  )

Definition at line 551 of file serv_xmpp.c.

References CC, free(), XMPP, and xmpp_command_loop().

Referenced by ctdl_module_init_xmpp().

◆ xmpp_command_loop()

void xmpp_command_loop ( void  )

◆ xmpp_greeting()

void xmpp_greeting ( void  )

◆ xmpp_login_hook()

void xmpp_login_hook ( void  )

Definition at line 640 of file serv_xmpp.c.

References CC, XMPP_EVT_LOGIN, and xmpp_queue_event().

Referenced by ctdl_module_init_xmpp().

◆ xmpp_logout_hook()

void xmpp_logout_hook ( void  )

Definition at line 648 of file serv_xmpp.c.

References CC, XMPP_EVT_LOGOUT, and xmpp_queue_event().

Referenced by ctdl_module_init_xmpp().

◆ xmpp_stream_start()

void xmpp_stream_start ( void *  data,
const char *  supplied_el,
const char **  attr 
)

Definition at line 170 of file serv_xmpp.c.

References CC, cprintf(), xmlesc(), XMPP, and xmpp_output_auth_mechs().

Referenced by xmpp_xml_start().

◆ xmpp_xml_chardata()

void xmpp_xml_chardata ( void *  data,
const XML_Char *  s,
int  len 
)

Definition at line 530 of file serv_xmpp.c.

References _citxmpp::chardata, _citxmpp::chardata_alloc, _citxmpp::chardata_len, malloc(), SIZ, and XMPP.

Referenced by xmpp_greeting().

◆ xmpp_xml_end()

◆ xmpp_xml_start()

void xmpp_xml_start ( void *  data,
const char *  supplied_el,
const char **  attr 
)

Definition at line 218 of file serv_xmpp.c.

References XMPP, and xmpp_stream_start().

Referenced by xmpp_greeting().

Variable Documentation

◆ CitadelServiceXMPP

const char* CitadelServiceXMPP ="XMPP"

Definition at line 653 of file serv_xmpp.c.

Referenced by ctdl_module_init_xmpp().

◆ xmpp_queue

struct xmpp_event* xmpp_queue = NULL

Definition at line 56 of file serv_xmpp.c.

Referenced by xmpp_process_events(), and xmpp_queue_event().