zabbix-agent2/src/zabbix_server/ha/ha_manager.c
/******************************************************************************
 *                                                                            *
 * Function: zbx_ha_set_failover_delay                                        *
 *                                                                            *
 * Purpose: set HA failover delay                                             *
 *                                                                            *
 * Comments: A new socket is opened to avoid interfering with notification    *
 *           channel                                                          *
 *                                                                            *
 ******************************************************************************/
zbx_ha_set_failover_delay

Purpose: set HA failover delay

Comments: A new socket is opened to avoid interfering with notification
channel
zbx_ha_set_failover_delay Purpose : set HA failover delay Comments : A new socket is opened to avoid interfering with notification channel
int	zbx_ha_set_failover_delay(int delay, char **error)
{
	unsigned char		*data;
	zbx_uint32_t		error_len;
	if (SUCCEED != zbx_ipc_async_exchange(ZBX_IPC_SERVICE_HA, ZBX_IPC_SERVICE_HA_SET_FAILOVER_DELAY,
			ZBX_HA_SERVICE_TIMEOUT, (unsigned char *)&delay, sizeof(delay), &data, error))
	{
		return FAIL;
	}
	(void)zbx_deserialize_str(data, error, error_len);
	zbx_free(data);
	return (0 == error_len ? SUCCEED : FAIL);
}
int zbx_ha_set_failover_delay ( int delay , char * * error ) { unsigned char * data ; zbx_uint32_t error_len ; if ( SUCCEED != zbx_ipc_async_exchange ( ZBX_IPC_SERVICE_HA , ZBX_IPC_SERVICE_HA_SET_FAILOVER_DELAY , ZBX_HA_SERVICE_TIMEOUT , ( unsigned char * ) & delay , sizeof ( delay ) , & data , error ) ) { return FAIL ; } ( void ) zbx_deserialize_str ( data , error , error_len ) ; zbx_free ( data ) ; return ( 0 == error_len ? SUCCEED : FAIL ) ; }
Function: zbx_ha_set_failover_delay                                        
                                                                            
 Purpose: set HA failover delay                                             
                                                                            
 Comments: A new socket is opened to avoid interfering with notification    
           channel
Function : zbx_ha_set_failover_delay Purpose : set HA failover delay Comments : A new socket is opened to avoid interfering with notification channel