dlm_TapWriteBuffer()
Writes a single buffer of data to the tap server.
#include "dlmtap.h" DlmResult dlm_TapWriteBuffer ( DlmLine line, Buffer buffer, DlmSource source );
line | id of session to write to |
buffer | buffer to write |
source | source of the buffer |
dlm_TapWriteBuffer() writes a single buffer of data to the tap server.
If successful, dlm_TapWriteBuffer() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
if ((result = dlm_TapWriteBuffer(dlm_Line, &buffer, source)) < 0) { printf("Error: Failure writing buffer - %s (%d).\n", dlm_ErrorMessage(result), result); } else { /* do something */ }