Back to index

nagios-nrpe  2.13
utils.h
Go to the documentation of this file.
00001 /************************************************************************************************
00002  *
00003  * UTILS.H - NRPE Utilities Include File
00004  *
00005  * License: GPL
00006  * Copyright (c) 1999-2006 Ethan Galstad (nagios@nagios.org)
00007  *
00008  * Last Modified: 12-11-2006
00009  *
00010  * Description:
00011  *
00012  * This file contains common include files and function definitions used in many of the plugins.
00013  *
00014  * License Information:
00015  *
00016  * This program is free software; you can redistribute it and/or modify
00017  * it under the terms of the GNU General Public License as published by
00018  * the Free Software Foundation; either version 2 of the License, or
00019  * (at your option) any later version.
00020  *
00021  * This program is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00024  * GNU General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU General Public License
00027  * along with this program; if not, write to the Free Software
00028  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00029  *
00030  ************************************************************************************************/
00031 
00032 #ifndef _UTILS_H
00033 #define _UTILS_H
00034 
00035 #include "../include/config.h"
00036 
00037 
00038 void generate_crc32_table(void);
00039 unsigned long calculate_crc32(char *, int);
00040 
00041 void randomize_buffer(char *,int);
00042 
00043 int my_tcp_connect(char *,int,int *);
00044 int my_connect(char *,int,int *,char *);
00045 
00046 int my_inet_aton(register const char *,struct in_addr *);
00047 
00048 void strip(char *);
00049 
00050 int sendall(int,char *,int *);
00051 int recvall(int,char *,int *,int);
00052 
00053 char *my_strsep(char **,const char *);
00054 
00055 void display_license(void);
00056 
00057 #endif
00058 
00059 
00060 
00061 
00062