dec_inbound_connections

March 26, 2020 Contributors

Name

dec_inbound_connections

Synopsis

#include "hooks/core/dec_inbound_connections.h"

| void **dec_inbound_connections** ( | closure, |   |
|   | conntype, |   |
|   | fd, |   |
|   | ac); |   |

void * <var class="pdparam">closure</var>;
char * <var class="pdparam">conntype</var>;
int <var class="pdparam">fd</var>;
accept_construct * <var class="pdparam">ac</var>;

| int **has_core_dec_inbound_connections_hook** ( | ); |   |

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

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

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

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

| void **call_core_dec_inbound_connections_hook** ( | conntype, |   |
|   | fd, |   |
|   | ac); |   |

char * <var class="pdparam">conntype</var>;
int <var class="pdparam">fd</var>;
accept_construct * <var class="pdparam">ac</var>;

Description

Immediately prior to terminating a connection this hook will be invoked once. conntype represents the type of connection (e.g. "SMTP"). fd is the file descriptor of the connection. ac is the accept_construct associated with the session.