s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-qmqpc.c File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "buffer.h"
#include "getln.h"
#include "exit.h"
#include "stralloc.h"
#include "readclose.h"
#include "timeoutconn.h"
#include "logmsg.h"
#include "str.h"
#include "sig.h"
#include "ip.h"
#include "timeout.h"
#include "auto_qmail.h"
#include "control.h"
#include "fmt.h"
#include "uint_t.h"
#include "socket_if.h"
Include dependency graph for qmail-qmqpc.c:

Go to the source code of this file.

Macros

#define PORT_QMQP   628
 

Functions

void die_success ()
 
void die_perm ()
 
void nomem ()
 
void die_read ()
 
void die_control ()
 
void die_socket ()
 
void die_home ()
 
void die_temp ()
 
void die_conn ()
 
void die_format ()
 
ssize_t saferead (int fd, char *buf, int len)
 
ssize_t safewrite (int fd, char *buf, int len)
 
void getmess ()
 
void doit (char *server)
 
int main ()
 

Variables

int lasterror = 55
 
int qmqpfd
 
char buf [1024]
 
buffer bo = BUFFER_INIT(safewrite,-1,buf,sizeof(buf))
 
buffer bi = BUFFER_INIT(saferead,-1,buf,sizeof(buf))
 
buffer be = BUFFER_INIT(read,1,buf,sizeof(buf))
 
stralloc beforemessage = {0}
 
stralloc message = {0}
 
stralloc aftermessage = {0}
 
char strnum [FMT_ULONG]
 
stralloc line = {0}
 
stralloc servers = {0}
 

Macro Definition Documentation

◆ PORT_QMQP

#define PORT_QMQP   628

Definition at line 23 of file qmail-qmqpc.c.

Function Documentation

◆ die_conn()

void die_conn ( )

Definition at line 33 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_control()

void die_control ( void  )

Definition at line 29 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_format()

void die_format ( )

Definition at line 34 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_home()

void die_home ( )

Definition at line 31 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_perm()

void die_perm ( )

Definition at line 26 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_read()

void die_read ( void  )

Definition at line 28 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_socket()

void die_socket ( )

Definition at line 30 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_success()

void die_success ( )

Definition at line 25 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_temp()

void die_temp ( )

Definition at line 32 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ doit()

void doit ( char *  server)

Definition at line 104 of file qmail-qmqpc.c.

Here is the call graph for this function:

◆ getmess()

void getmess ( )

Definition at line 68 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 157 of file qmail-qmqpc.c.

Here is the call graph for this function:

◆ nomem()

void nomem ( )

Definition at line 27 of file qmail-qmqpc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saferead()

ssize_t saferead ( int  fd,
char *  buf,
int  len 
)

Definition at line 39 of file qmail-qmqpc.c.

Here is the call graph for this function:

◆ safewrite()

ssize_t safewrite ( int  fd,
char *  buf,
int  len 
)

Definition at line 47 of file qmail-qmqpc.c.

Here is the call graph for this function:

Variable Documentation

◆ aftermessage

stralloc aftermessage = {0}

Definition at line 63 of file qmail-qmqpc.c.

◆ be

buffer be = BUFFER_INIT(read,1,buf,sizeof(buf))

Definition at line 58 of file qmail-qmqpc.c.

◆ beforemessage

stralloc beforemessage = {0}

Definition at line 61 of file qmail-qmqpc.c.

◆ bi

buffer bi = BUFFER_INIT(saferead,-1,buf,sizeof(buf))

Definition at line 57 of file qmail-qmqpc.c.

◆ bo

buffer bo = BUFFER_INIT(safewrite,-1,buf,sizeof(buf))

Definition at line 56 of file qmail-qmqpc.c.

◆ buf

char buf[1024]

Definition at line 55 of file qmail-qmqpc.c.

◆ lasterror

int lasterror = 55

Definition at line 36 of file qmail-qmqpc.c.

◆ line

stralloc line = {0}

Definition at line 66 of file qmail-qmqpc.c.

◆ message

stralloc message = {0}

Definition at line 62 of file qmail-qmqpc.c.

◆ qmqpfd

int qmqpfd

Definition at line 37 of file qmail-qmqpc.c.

◆ servers

stralloc servers = {0}

Definition at line 155 of file qmail-qmqpc.c.

◆ strnum

char strnum[FMT_ULONG]

Definition at line 65 of file qmail-qmqpc.c.