diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-09-22 15:18:38 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-09-22 15:18:38 +0300 |
commit | 01d70eca3dd0c8e1b6ebc61e78159f17e04e96f4 (patch) | |
tree | fe0bfd8e3b1cab5ec9ae640886e78f8a455f119a /include/comms.h | |
parent | 9af610cfbaeffa5f48b9792d517d4e2169d22a56 (diff) |
...G...PS. [ZBXNEXT-6923] added separate timeout for connection
Diffstat (limited to 'include/comms.h')
-rw-r--r-- | include/comms.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/comms.h b/include/comms.h index 689538dbfe9..bee3ca45f6b 100644 --- a/include/comms.h +++ b/include/comms.h @@ -110,7 +110,7 @@ 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, - unsigned int tls_connect, const char *tls_arg1, const char *tls_arg2); + int connect_timeout, unsigned int tls_connect, const char *tls_arg1, const char *tls_arg2); #define ZBX_TCP_PROTOCOL 0x01 #define ZBX_TCP_COMPRESS 0x02 @@ -123,6 +123,8 @@ int zbx_tcp_connect(zbx_socket_t *s, const char *source_ip, const char *ip, unsi #define ZBX_TCP_SEC_TLS_PSK_TXT "psk" #define ZBX_TCP_SEC_TLS_CERT_TXT "cert" +#define ZBX_TCP_COMMON_TIMEOUT 0 /* don't use separate timeout when establishing connection */ + const char *zbx_tcp_connection_type_name(unsigned int type); #define zbx_tcp_send(s, d) zbx_tcp_send_ext((s), (d), strlen(d), 0, ZBX_TCP_PROTOCOL, 0) |