summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.h
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2004-02-29 04:09:34 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2004-02-29 04:09:34 +0000
commitdc8f5c0f658b5e060fc17a4beb4a0a2b195ba470 (patch)
treed8239d5c49ddce04fbc661046e2c5670b65feb60 /plugins/netutils.h
parent5316da0b8d35823ce52bed41487292bcfff1a0b2 (diff)
downloadmonitoring-plugins-dc8f5c0f658b5e060fc17a4beb4a0a2b195ba470.tar.gz
was making up to 34 separate tcp connections - now we open one and reuse
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@831 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r--plugins/netutils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 88a5162e..b2c2a2f5 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -48,6 +48,10 @@ int process_request (const char *address, int port, int proto,
48int my_tcp_connect (const char *address, int port, int *sd); 48int my_tcp_connect (const char *address, int port, int *sd);
49int my_udp_connect (const char *address, int port, int *sd); 49int my_udp_connect (const char *address, int port, int *sd);
50 50
51int send_tcp_request (int sd, const char *send_buffer, char *recv_buffer, int recv_size);
52int send_udp_request (int sd, const char *send_buffer, char *recv_buffer, int recv_size);
53int send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int recv_size);
54
51int is_host (const char *); 55int is_host (const char *);
52int is_addr (const char *); 56int is_addr (const char *);
53int resolve_host_or_addr (const char *, int); 57int resolve_host_or_addr (const char *, int);