YAZ User's Guide and Reference
Prev | Chapter 3. Building clients with ZOOM | Next

# Events

If you're developing non-blocking applications, you have to deal with events.

         int Z3950_event (int no, Z3950_connection *cs);

The `Z3950_event` executes pending events for a number of connections. Supply the number of connections in `no` and an array of connections in `cs` (`cs[0] ... cs[no-1]`). A pending event could be a sending a search, receiving a response, etc. When an event has a occured for one of the connections, this function returns a positive integer `n` denoting that an event occurred for connection `cs[n-1]`. When no events are pending for the connections, a value of zero is returned. To make sure all outstanding requests are performed call this function repeatedly until zero is returned.

Prev | Home | Next
Options | Up | Generic server