Skip to main content

log_client_connection_success

Last updated March 2020

Name

log_client_connection_success — Register a function with this hook that will be invoked whenever an outbound connection attempt succeeds

Synopsis

#include "hooks/core/log_client_connection_success.h"

| void **core_log_client_connection_failure** ( | closure, |   | |   | addr, |   | |   | dr, |   | |   | binding_slot, |   | |   | now); |   |

void * <var class="pdparam">closure</var>; struct sockaddr * <var class="pdparam">addr</var>; domain_record * <var class="pdparam">dr</var>; int <var class="pdparam">binding_slot</var>; struct timeval * <var class="pdparam">now</var>;

Description

Register a function with this hook that will be invoked whenever an outbound connection attempt succeeds. The address of the peer as well as domain/binding information are passed to the hook.

Parameters

closure

A pointer to the closure function.

addr

A pointer to a sockaddr struct.

dr

A pointer to a domain_record struct. For documentation of this data structure see “domain_record”

binding_slot

The binding slot.

now

A pointer to a timeval struct, which may be NULL.

**Configuration Change. ** Prior to version 3.0, NULL was not an allowed value.

Return Values

This hook returns void.

Threading

This hook will be called in any thread.

See Also

Was this page helpful?