Source
typedef int (*zbx_async_task_process_cb_t)(short event, void *data, int *fd, zbx_vector_address_t *addresses,
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
typedef struct ares_channeldata zbx_channel_t;
typedef void zbx_channel_t;
typedef enum
{
ZBX_ASYNC_TASK_READ,
ZBX_ASYNC_TASK_WRITE,
ZBX_ASYNC_TASK_STOP,
ZBX_ASYNC_TASK_RESOLVE_REVERSE
}
zbx_async_task_state_t;
typedef enum
{
ZABBIX_ASYNC_STEP_DEFAULT = 0,
ZABBIX_ASYNC_STEP_REVERSE_DNS,
}
zbx_async_rdns_step_t;
typedef enum
{
ZABBIX_ASYNC_RESOLVE_REVERSE_DNS_NO = 0,
ZABBIX_ASYNC_RESOLVE_REVERSE_DNS_YES,
}
zbx_async_resolve_reverse_dns_t;
typedef struct
{
char ip[65];
}
zbx_address_t;
ZBX_VECTOR_DECL(address, zbx_address_t)