Logo Search packages:      
Sourcecode: dbmail version File versions  Download package

serverchild.h

/*
 * serverchild.h
 *
 * function prototypes for the children of the main server process;
 * the children will be responsible for handling client connections.
 */

#ifndef SERVERCHILD_H
#define SERVERCHILD_H

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <sys/types.h>
#include <signal.h>
#include "clientinfo.h"

typedef struct 
{
  int maxConnect;
  int listenSocket;
  int resolveIP;
  int timeout;
  char *timeoutMsg;
  int (*ClientHandler)(clientinfo_t *);
} ChildInfo_t;

void ChildSigHandler(int sig, siginfo_t *info, void *data);
int CheckChildAlive(pid_t pid);
int SetChildSigHandler();
pid_t CreateChild(ChildInfo_t *info);


#endif

Generated by  Doxygen 1.6.0   Back to index