rapi_dispatch - dispatch API event
#include <rapi.h> int rapi_dispatch(void)
The application should call this routine whenever a read event is signaled on a file descriptor returned by
rapi_getfd(). The rapi_dispatch()routine may be called at any time, but it will generally have no effect unless there is a pending event.
Calling this routine may result in one or more upcalls to the application from any of the open API sessions.
If this call encounters an error,
rapi_dispatch()returns a RAPI error code; otherwise, it returns zero. See Error Handlingfor a list of error codes.