Activates a client event.
int srv_event (
SRV_PROC * srvproc,
int event,
void * data );
where
The value of the requested event, or -1 if an error occurs.
Events are usually activated automatically based on client and server requests. However, events can be activated from within an Open Data Services server application by using srv_event.
Only these events can be invoked using srv_event:
The srv_handle function specifies which event handler to call when an event occurs. If no handler is defined for a particular event, the Open Data Services server application's default event handler is called.
Data can be passed to event handlers or to any event. The data is made available with the SRV_EVENTDATA macro.
To activate an ODS event without a SRV_PROC client connection, call the srv_setevent function.
This entry | For information about |
---|---|
SRV_EVENTDATA | Accessing event-handler data |
srv_handle | Installing an event handler |
srv_setevent | Activating a global ODS event |