00001 /* 00002 * Copyright (C), 2000-2002 by Contributors to the monit codebase. 00003 * All Rights Reserved. 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software Foundation, 00017 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 00021 #ifndef ENGINE_H 00022 #define ENGINE_H 00023 00024 #include <config.h> 00025 00026 #include "net.h" 00027 #include "processor.h" 00028 #include "cervlet.h" 00029 00030 /* 00031 * The maximum queue length for incoming connection 00032 * indications (a request to connect) 00033 */ 00034 #define DEFAULT_QUEUE_LEN 10 00035 00036 struct host_allow { 00037 char *name; 00038 /* For internal use */ 00039 struct host_allow *next; 00040 }; 00041 typedef struct host_allow* HostsAllow; 00042 00043 /* Public prototypes */ 00044 void start_httpd(int port, int backlog, char *bindAddr); 00045 void stop_httpd(); 00046 int add_host_allow(char *); 00047 int has_hosts_allow(); 00048 void destroy_hosts_allow(); 00049 00050 00051 #endif