DLM Monitor

Monitor Disconnect

dlm_MonDisconnect()

Disconnects a session and returns it to the open state.

Syntax
#include "dlmmon.h"

DlmResult dlm_MonDisconnect
    (
        DlmMonitorId  id
    );
idid of session to disconnect
Description

dlm_MonDisconnect() disconnects a session and returns it to the open state.

Return Values

If successful, dlm_MonDisconnect() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

dlm_MonConnect()

Example
if ((result = dlm_MonConnect(id, 10000)) < 0)
{
    printf("Error: Failure connecting: %s.\n", dlm_ErrorMessage(result));
}
else
{
    /* do something */

    if ((result =  dlm_MonDisconnect(id)) < 0)
    {
        printf("Error: Failure disconnecting %s.\n", dlm_ErrorMessage(result));
    }
    else
    {
        printf("Monitor disconnected.\n");
    }
}