DLM Monitor
dlm_MonClose()
Closes a monitor session and frees all associated resources.
#include "dlmmon.h"
DlmResult dlm_MonClose
(
DlmMonitorId id
);
| id | id of session to close |
dlm_MonClose() closes a monitor session and frees all associated resources.
If successful, dlm_MonClose() returns a non-negative value representing the number of bytes written. 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
{
/* do something */
if ((result = dlm_MonClose(id)) < 0)
{
printf("Error: Failure closing: %s.\n", dlm_ErrorMessage(result));
}
else
{
printf("Monitor session closed.\n");
}
}