A thread executes a particular event handler at any one time. A thread can be said to be inside an event when executing the event handler associated with that event. An Open Server application can retrieve the event that a thread is in by calling srv_thread_props with property set to SRV_T_EVENT and cmd set to CS_GET. This procedure is useful if an application uses the same event handler code for multiple events.
Possible events include:
SRV_ATTENTION
SRV_BULK
SRV_CONNECT
SRV_CURSOR
SRV_DISCONNECT
SRV_DYNAMIC
SRV_FULLPASSTHRU
SRV_LANGUAGE
SRV_LISTENER_PREBIND
SRV_LISTENER_POSTBIND
SRV_MSG
SRV_OPTION
SRV_RPC
SRV_START
SRV_STOP
User-defined events
See “Events”.