From 11b35b92e3195d230bef359f6a0679ae4414716b Mon Sep 17 00:00:00 2001 From: "Jeremy T. Bouse" Date: Sat, 15 Mar 2003 01:25:35 +0000 Subject: Spent the day working on backwards compatability using getaddrinfo() Moved getaddrinfo.? and gethostbyname.? from lib/ to plugins/ due to problems with compiling into the libnagiosplug.a as it required linking against socket libraries which are unneeded except for network based plugins. This code should hopefully happily work for all systems and has been tested prior to commit on Debian GNU/Linux, SPARC Solaris 7 and SPARC Solaris 9. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@424 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/netutils.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'plugins/netutils.h') diff --git a/plugins/netutils.h b/plugins/netutils.h index 3ea51663..6c8eed36 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h @@ -43,11 +43,20 @@ int process_tcp_request (char *address, int port, char *sbuffer, char *rbuffer, int rsize); int process_udp_request (char *address, int port, char *sbuffer, char *rbuffer, int rsize); -int process_request (char *address, int port, char *proto, char *sbuffer, +int process_request (char *address, int port, int proto, char *sbuffer, char *rbuffer, int rsize); int my_tcp_connect (char *address, int port, int *sd); int my_udp_connect (char *address, int port, int *sd); int my_connect (char *address, int port, int *sd, int proto); -int socket_timeout = DEFAULT_SOCKET_TIMEOUT; +int is_host (char *); +int is_addr (char *); +int resolve_host_or_addr (char *, int); +int is_inet_addr (char *); +#ifdef USE_IPV6 +int is_inet6_addr (char *); +#endif +int is_hostname (char *); + +extern int socket_timeout; -- cgit v1.2.3-74-g34f1