DLM Tap

Tap Write Signals

dlm_TapWriteSignals()

Writes a signal status event to the tap server.

Syntax
#include "dlmtap.h"

DlmResult dlm_TapWriteSignals
    (
        DlmLine        line,
        DlmSignalFlag  signals
    );
lineid of session to write to
signalssignals to write
Description

dlm_TapWriteSignals() writes a signal status event to the tap server.

Return Values

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

See Also

dlm_WriteBuffer()
dlm_WriteData()
dlm_WriteEvent()

Example
if ((result = dlm_TapWriteSignals(dlm_Line, signals)) < 0)
{
    printf("Error: Failure writing signals - %s (%d).\n", dlm_ErrorMessage(result), result);
}
else
{
    /* do something */
}