Purpose
Terminate all connections to event services.
Syntax
#using Spo.SPDlib SPD_errorType SPDTerminate(void);
Description
This function terminates all connections to the Event Server, freeing the file descriptors associated with those connections and releasing system resources.
This function is meant for use by clients that intermittently wish to send events to event services but are not registered to receive events from event services. Since the number of connected clients is limited by available system resources, you must use this function in clients wherever possible.
To reestablish a connection to the Event Server, call a function that sends an event (for example, SPDSendAlarm). There is no need to call SPDInitClient again, nor should the client attempt to do so. If the client does, the error SPD_alreadyInitialized results.
Return Value
The return value indicates whether an error occurred, as follows.
Return | Indication |
SPD_normal | No error |
SPD_notInitialized | SPDInitClient not called previously |
SPD_errException | A .NET runtime exception occurs |