37.4. Disconnecting from the event builder.

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

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.

Example 37-2. Closing an event builder connection


delete *pEvb;