From dc8f5c0f658b5e060fc17a4beb4a0a2b195ba470 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sun, 29 Feb 2004 04:09:34 +0000 Subject: 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 --- plugins/netutils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/netutils.h') 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); -- cgit v1.2.3