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.
#include "dlmmon.h" DlmResult dlm_MonStop ( DlmMonitorId id );
id | id of session to stop |
dlm_MonStop() stops the flow of data from the server.
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:
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"); } }