veto_host_connection

March 26, 2020 Contributors

Name

veto_host_connection

Synopsis

#include "hooks/core/veto_host_connection.h"

| int **veto_host_connection** ( | closure, |   |
|   | host, |   |
|   | dr, |   |
|   | binding_slot, |   |
|   | max_conns, |   |
|   | cur_conns); |   |

void * <var class="pdparam">closure</var>;
host_record * <var class="pdparam">host</var>;
domain_record * <var class="pdparam">dr</var>;
int <var class="pdparam">binding_slot</var>;
int <var class="pdparam">max_conns</var>;
int <var class="pdparam">cur_conns</var>;

| int **has_core_veto_host_connection_hook** ( | ); |   |

| void **register_core_veto_host_connection_hook_first** ( | hook, |   |
|   | closure); |   |

ec_hook_core_veto_host_connection_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **register_core_veto_host_connection_hook_last** ( | hook, |   |
|   | closure); |   |

ec_hook_core_veto_host_connection_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| int **call_core_veto_host_connection_hook** ( | host, |   |
|   | dr, |   |
|   | binding_slot, |   |
|   | max_conns, |   |
|   | cur_conns); |   |

host_record * <var class="pdparam">host</var>;
domain_record * <var class="pdparam">dr</var>;
int <var class="pdparam">binding_slot</var>;
int <var class="pdparam">max_conns</var>;
int <var class="pdparam">cur_conns</var>;

Description

veto_host_connection is called when an MX is being selected for a domain, to determine if a particular host is not suitable (i.e. if a new connection to it should not be permitted). The function should return 1 if a new connection to this host should not be permitted. host: dr: binding_slot: max_conns: cur_conns: