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)  

serv_instmsg.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 <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "serv_instmsg.h"
#include "citserver.h"
#include "support.h"
#include "config.h"
#include "msgbase.h"
#include "user_ops.h"
#include "ctdl_module.h"
Include dependency graph for serv_instmsg.c:

Go to the source code of this file.

Data Structures

struct  imlog
 

Functions

void log_instant_message (struct CitContext *me, struct CitContext *them, char *msgtext, int serial_number)
 
void delete_instant_messages (void)
 
void cmd_gexp (char *argbuf)
 
void cmd_gexp_async (void)
 
void add_xmsg_to_context (struct CitContext *ccptr, struct ExpressMessage *newmsg)
 
int send_instant_message (char *lun, char *lem, char *x_user, char *x_msg)
 
void cmd_sexp (char *argbuf)
 
void cmd_dexp (char *argbuf)
 
void cmd_reqt (char *argbuf)
 
void flush_individual_conversation (struct imlog *im)
 
void flush_conversations_to_disk (time_t if_older_than)
 
void instmsg_timer (void)
 
void instmsg_shutdown (void)
 
char * ctdl_module_instmsg_init (int threading)
 

Variables

struct imlogimlist = NULL
 

Function Documentation

◆ add_xmsg_to_context()

void add_xmsg_to_context ( struct CitContext ccptr,
struct ExpressMessage newmsg 
)

◆ cmd_dexp()

void cmd_dexp ( char *  argbuf)

Definition at line 362 of file serv_instmsg.c.

References ac_logged_in, CC, CIT_OK, cprintf(), and CtdlAccessCheck().

Referenced by ctdl_module_instmsg_init().

◆ cmd_gexp()

◆ cmd_gexp_async()

void cmd_gexp_async ( void  )

Definition at line 180 of file serv_instmsg.c.

References ASYNC_GEXP, ASYNC_MSG, CC, and cprintf().

Referenced by ctdl_module_instmsg_init().

◆ cmd_reqt()

◆ cmd_sexp()

◆ ctdl_module_instmsg_init()

◆ delete_instant_messages()

void delete_instant_messages ( void  )

◆ flush_conversations_to_disk()

◆ flush_individual_conversation()

◆ instmsg_shutdown()

void instmsg_shutdown ( void  )

Definition at line 565 of file serv_instmsg.c.

References flush_conversations_to_disk().

Referenced by ctdl_module_instmsg_init().

◆ instmsg_timer()

void instmsg_timer ( void  )

Definition at line 561 of file serv_instmsg.c.

References flush_conversations_to_disk().

Referenced by ctdl_module_instmsg_init().

◆ log_instant_message()

void log_instant_message ( struct CitContext me,
struct CitContext them,
char *  msgtext,
int  serial_number 
)

◆ send_instant_message()

Variable Documentation

◆ imlist

struct imlog* imlist = NULL

Definition at line 48 of file serv_instmsg.c.

Referenced by flush_conversations_to_disk(), and log_instant_message().