The event builder defines a 'clean' disconnect protocol. If the the client simply closes the socket without following this protocol, the event builder can consider this an abnormal client termination and report an alarm.
The disconnect protocol is initiated by either
Destroying a connected CEventOrderClient
object or
Invoking the destroy
method on a
connected CEventOrderClient
object.
The code snippet below illustrates the first of these methods.
*pEvb
is a pointer to a dynamically allocated
connected
CEventOrderClient
at the start of the
snippet.