protocol.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C), 2000-2003 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 #define P_DWP      9
00039 #define P_LDAP2    10
00040 #define P_LDAP3    11
00041 
00042 /* Protocol Factory routines */
00043 void  gc_protocols();
00044 void* create_default();
00045 void* create_http();
00046 void* create_ftp();
00047 void* create_smtp();
00048 void* create_pop();
00049 void* create_imap();
00050 void* create_nntp();
00051 void* create_ssh();
00052 void* create_dwp();
00053 void* create_ldap2();
00054 void* create_ldap3();
00055 
00056 /* "Package" locale Protocol routines */
00057 int check_default(Port_T);
00058 int check_http(Port_T);
00059 int check_ftp(Port_T);
00060 int check_smtp(Port_T);
00061 int check_pop(Port_T);
00062 int check_imap(Port_T);
00063 int check_nntp(Port_T);
00064 int check_ssh(Port_T);
00065 int check_dwp(Port_T);
00066 int check_ldap2(Port_T);
00067 int check_ldap3(Port_T);
00068 
00069 #endif