diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-10-15 10:01:54 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-10-15 10:02:01 +0300 |
commit | 57c9f2bbc014b15d2ad9d2758f25b007e4463370 (patch) | |
tree | fed8839a0739597eb175237ee0cefc40f99e5877 /include/comms.h | |
parent | 784c998d4917eee3c5a04016d7e2573ed5c0dfee (diff) |
...G...PS. [ZBXNEXT-6923] improved setting of send and receive timeout
Diffstat (limited to 'include/comms.h')
-rw-r--r-- | include/comms.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/comms.h b/include/comms.h index f654fe48447..12bf2f56a3e 100644 --- a/include/comms.h +++ b/include/comms.h @@ -110,7 +110,8 @@ void zbx_getip_by_host(const char *host, char *ip, size_t iplen); #endif int zbx_tcp_connect(zbx_socket_t *s, const char *source_ip, const char *ip, unsigned short port, int timeout, - int connect_timeout, unsigned int tls_connect, const char *tls_arg1, const char *tls_arg2); + unsigned int tls_connect, const char *tls_arg1, const char *tls_arg2); +void zbx_socket_timeout_set(zbx_socket_t *s, int timeout); #define ZBX_TCP_PROTOCOL 0x01 #define ZBX_TCP_COMPRESS 0x02 |