DLM Tap

Tap Write Data

dlm_TapWriteData()

Writes a single buffer of data to the tap server.

Syntax
#include "dlmtap.h"

DlmResult dlm_TapWriteData
    (
        DlmLine    line,
        DlmTag     tag,
        DlmFlag    flag,
        DlmSource  source,
        DlmBuffer  buffer,
        DlmSize    size
    );
lineid of session to write to
tagdata tag for the event
flagdata flag for the event
sourcesource of the buffer
bufferbuffer to write
sizesize of buffer in bytes
Description

dlm_TapWriteData() writes a single buffer of data to the tap server.

Return Values

If successful, dlm_TapWriteData() 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_WriteEvent()
dlm_WriteSignals()

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