DLM Monitor

Monitor Start

dlm_MonStart()

Starts the flow of data from the server.

Syntax
#include "dlmmon.h"

DlmResult dlm_MonStart
    (
        DlmMonitorId  id
    );
idid of session to start
Description

dlm_MonStart() starts the flow of data from the server if it has been stopped. The monitor when starting up a session with a call to dlm_MonOpen defaults with data flowing from the server to the monitor. A call to dlm_MonStop can be used to stop the flow of data from the server.

Return Values

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

See Also

dlm_MonStop()

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

    /* do something */

    dlm_MonStart(id);

    /* do something */

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