Skip to main content

premigrate_outbound_connection

Last updated March 2020

Name

premigrate_outbound_connection

Synopsis

#include "hooks/core/premigrate_outbound_connection.h"

| void **premigrate_outbound_connection** ( | closure, |   | |   | connh, |   | |   | src, |   | |   | dest); |   |

void * <var class="pdparam">closure</var>; connection_handle * <var class="pdparam">connh</var>; domain_record * <var class="pdparam">src</var>; domain_record * <var class="pdparam">dest</var>;

| int **has_core_premigrate_outbound_connection_hook** ( | ); |   |

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

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

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

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

| void **call_core_premigrate_outbound_connection_hook** ( | connh, |   | |   | src, |   | |   | dest); |   |

connection_handle * <var class="pdparam">connh</var>; domain_record * <var class="pdparam">src</var>; domain_record * <var class="pdparam">dest</var>;

Description

When an existing connection_handle connh is used to transmit the last active message for domain src, other domains that may shared the mail exchange to which conn is connected. If any of those domains contain active messages that require delivery the connection is migrated to that domain dest. This hook is invoked prior to the augmentation of internal data structure to reflect such a migration and is primarily used for accounting purposed.

Was this page helpful?