diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-02-29 04:09:34 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-02-29 04:09:34 +0000 |
commit | dc8f5c0f658b5e060fc17a4beb4a0a2b195ba470 (patch) | |
tree | d8239d5c49ddce04fbc661046e2c5670b65feb60 /plugins/netutils.h | |
parent | 5316da0b8d35823ce52bed41487292bcfff1a0b2 (diff) | |
download | monitoring-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.h | 4 |
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, int my_tcp_connect (const char *address, int port, int *sd); int my_udp_connect (const char *address, int port, int *sd); +int send_tcp_request (int sd, const char *send_buffer, char *recv_buffer, int recv_size); +int send_udp_request (int sd, const char *send_buffer, char *recv_buffer, int recv_size); +int send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int recv_size); + int is_host (const char *); int is_addr (const char *); int resolve_host_or_addr (const char *, int); |