An application calls smc_close to close a connection and smc_connect_drop to deallocate a connection structure. It is an error to deallocate a connection that has not been closed. A call to smc_close results in the following implicit Monitor Client Library calls:
One or more calls to smc_drop_alarm to remove alarms, if necessary.
One or more calls to smc_drop_filter to remove filters, if necessary.
One or more calls to smc_drop_view to remove views.
See the code sample on page 33.