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