Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

daemon.h

Go to the documentation of this file.
00001 /*
00002  * Dibbler - a portable DHCPv6
00003  *
00004  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
00005  *          Marek Senderski <msend@o2.pl>
00006  *
00007  * released under GNU GPL v2 or later licence
00008  *
00009  * $Id: daemon.h,v 1.1 2005/02/03 22:06:40 thomson Exp $
00010  *
00011  * $Log: daemon.h,v $
00012  * Revision 1.1  2005/02/03 22:06:40  thomson
00013  * Linux startup/pid checking changed.
00014  *
00015  */
00016 
00017 #ifndef DAEMON_H
00018 #define DAEMON_H
00019 
00020 #ifndef SIGTERM
00021 #define SIGTERM 15
00022 #endif
00023 
00024 #ifndef SIGINT
00025 #define SIGINT 2
00026 #endif
00027 
00028 int start(char * pidfile, char * workdir);
00029 int stop(char * pidfile);
00030 
00031 int init(char * pidfile, char * workdir);
00032 int getPID(char * pidfile);
00033 int getServerPID();
00034 int getClientPID();
00035 int getRelayPID();
00036 int die(char * pidfile);
00037 
00038 void logStart(char * note, char * logname, char * logfile);
00039 void logEnd();
00040 
00041 #endif
00042 

Generated on Wed Mar 16 00:10:26 2005 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1