protocol.h

Go to the documentation of this file.
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 PROTOCOL_H
00022 #define PROTOCOL_H
00023 
00024 #include <config.h>
00025 
00026 #include "monitor.h"
00027 #include "net.h"
00028 
00029 /* Protocols supported */
00030 #define P_DEFAULT  1
00031 #define P_HTTP     2
00032 #define P_FTP      3
00033 #define P_SMTP     4
00034 #define P_POP      5
00035 #define P_IMAP     6
00036 #define P_NNTP     7
00037 #define P_SSH      8
00038 
00039 /* Protocol Factory routines */
00040 void  gc_protocols();
00041 void* create_default();
00042 void* create_http();
00043 void* create_ftp();
00044 void* create_smtp();
00045 void* create_pop();
00046 void* create_imap();
00047 void* create_nntp();
00048 void* create_ssh();
00049 
00050 /* "Package" locale Protocol routines */
00051 int check_default(Port_T);
00052 int check_http(Port_T);
00053 int check_ftp(Port_T);
00054 int check_smtp(Port_T);
00055 int check_pop(Port_T);
00056 int check_imap(Port_T);
00057 int check_nntp(Port_T);
00058 int check_ssh(Port_T);
00059 
00060 #endif