|Home > Target Connection Mechanism > Disconnecting from a target > About disconnecting from a target|
This section describes how to disconnect from a target.
The primary way to disconnect from a simulation is to use
Release() method of those target-side classes
that are involved in the connection mechanism. After this method
is called, the caller must ensure that it does not start any additional
interaction with the connection. The call performs the appropriate
actions on the target-side such as:
Release()calls wherever appropriate.
Release() calls is acceptable
for simple scenarios such as unique and direct connections between
caller and target. For more sophisticated scenarios, however, a
well-coordinated disconnection is required. The
provides two callbacks that are essential for such a disconnection:
Using these callbacks in combination with the
in the target enables establishing well-defined procedures for disconnection
from a CADI simulation.