DLM Monitor

Monitor Stop

dlm_MonStop()

Stops the flow of data from the server. No data buffering is done on the server. The server is still receiving data from the tap, it just stops sending the data to the monitor.

Syntax
#include "dlmmon.h"

DlmResult dlm_MonStop
    (
        DlmMonitorId  id
    );
idid of session to stop
Description

dlm_MonStop() stops the flow of data from the server.

Return Values

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

See Also

dlm_MonStart()

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");
    }
}