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
citmail.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <string.h>
#include <pwd.h>
#include <errno.h>
#include <stdarg.h>
#include <limits.h>
#include <libcitadel.h>
#include "../server/sysdep.h"
#include "../server/citadel.h"
#include "../server/citadel_dirs.h"
Include dependency graph for citmail.c:

Go to the source code of this file.

Functions

void strip_trailing_nonprint (char *buf)
 
void timeout (int signum)
 
int uds_connectsock (char *sockpath)
 
void serv_read (char *buf, int bytes)
 
void serv_write (char *buf, int nbytes)
 
void serv_gets (char *buf)
 
void serv_puts (char *buf)
 
void cleanup (int exitcode)
 
int main (int argc, char **argv)
 

Variables

int serv_sock
 
int debug = 0
 

Function Documentation

◆ cleanup()

void cleanup ( int  exitcode)

Definition at line 132 of file citmail.c.

References serv_gets(), and serv_puts().

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ serv_gets()

void serv_gets ( char *  buf)

Definition at line 102 of file citmail.c.

References debug, serv_read(), SIZ, and strip_trailing_nonprint().

Referenced by cleanup(), and main().

◆ serv_puts()

void serv_puts ( char *  buf)

Definition at line 125 of file citmail.c.

References debug, and serv_write().

Referenced by cleanup(), and main().

◆ serv_read()

void serv_read ( char *  buf,
int  bytes 
)

Definition at line 72 of file citmail.c.

References serv_sock.

Referenced by serv_gets().

◆ serv_write()

void serv_write ( char *  buf,
int  nbytes 
)

Definition at line 87 of file citmail.c.

References serv_sock.

Referenced by serv_puts().

◆ strip_trailing_nonprint()

void strip_trailing_nonprint ( char *  buf)

Definition at line 33 of file citmail.c.

Referenced by main(), and serv_gets().

◆ timeout()

void timeout ( int  signum)

◆ uds_connectsock()

int uds_connectsock ( char *  sockpath)

Definition at line 45 of file citmail.c.

Referenced by main().

Variable Documentation

◆ debug

int debug = 0

Definition at line 31 of file citmail.c.

Referenced by main(), serv_gets(), and serv_puts().

◆ serv_sock

int serv_sock

Definition at line 30 of file citmail.c.

Referenced by main(), serv_gets(), serv_printf(), serv_puts(), serv_read(), and serv_write().