Applications must be coded to install any needed runtime callbacks. An application installs a callback routine by calling ct_callback, passing a pointer to the callback routine, and indicating its type using the type parameter.
A callback of a particular type can be installed at the context or connection level. When a connection is allocated, it picks up default callbacks from its parent context. An application overrides these default callbacks by calling ct_callback to install new callbacks at the connection level.