diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-15 01:25:35 (GMT) |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-15 01:25:35 (GMT) |
commit | 11b35b92e3195d230bef359f6a0679ae4414716b (patch) | |
tree | f4911e5804c1f3037dcf63bbbf0b823c5ac19e5f /plugins/netutils.h | |
parent | 6cf5fc3c74c0bdfef6c4cc1b627578378ad3a407 (diff) | |
download | monitoring-plugins-11b35b92e3195d230bef359f6a0679ae4414716b.tar.gz |
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
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r-- | plugins/netutils.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h index 3ea5166..6c8eed3 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h | |||
@@ -43,11 +43,20 @@ int process_tcp_request (char *address, int port, char *sbuffer, | |||
43 | char *rbuffer, int rsize); | 43 | char *rbuffer, int rsize); |
44 | int process_udp_request (char *address, int port, char *sbuffer, | 44 | int process_udp_request (char *address, int port, char *sbuffer, |
45 | char *rbuffer, int rsize); | 45 | char *rbuffer, int rsize); |
46 | int process_request (char *address, int port, char *proto, char *sbuffer, | 46 | int process_request (char *address, int port, int proto, char *sbuffer, |
47 | char *rbuffer, int rsize); | 47 | char *rbuffer, int rsize); |
48 | 48 | ||
49 | int my_tcp_connect (char *address, int port, int *sd); | 49 | int my_tcp_connect (char *address, int port, int *sd); |
50 | int my_udp_connect (char *address, int port, int *sd); | 50 | int my_udp_connect (char *address, int port, int *sd); |
51 | int my_connect (char *address, int port, int *sd, int proto); | 51 | int my_connect (char *address, int port, int *sd, int proto); |
52 | 52 | ||
53 | int socket_timeout = DEFAULT_SOCKET_TIMEOUT; | 53 | int is_host (char *); |
54 | int is_addr (char *); | ||
55 | int resolve_host_or_addr (char *, int); | ||
56 | int is_inet_addr (char *); | ||
57 | #ifdef USE_IPV6 | ||
58 | int is_inet6_addr (char *); | ||
59 | #endif | ||
60 | int is_hostname (char *); | ||
61 | |||
62 | extern int socket_timeout; | ||