DLM Monitor

Monitor Close

dlm_MonClose()

Closes a monitor session and frees all associated resources.

Syntax
#include "dlmmon.h"

DlmResult  dlm_MonClose
    (
        DlmMonitorId	id
    );
idid of session to close
Description

dlm_MonClose() closes a monitor session and frees all associated resources.

Return Values

If successful, dlm_MonClose() returns a non-negative value representing the number of bytes written. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

dlm_MonOpen()

Example
if ((result = dlm_MonOpen(password, address, line,
                              callback, 0, &id)) < 0)
{
    printf("Error: Failure opening: %s.\n", dlm_ErrorMessage(result));
}
else
{
    /* do something */

    if ((result =  dlm_MonClose(id)) < 0)
    {
        printf("Error: Failure closing: %s.\n", dlm_ErrorMessage(result));
    }
    else
    {
        printf("Monitor session closed.\n");
    }
}