The rapi_dispatch() call dispatches an RSVP event.

Syntax

#include <rsvprapi.h>

int rapi_dispatch(void);

Parameters: None.

Description

The rapi_getfd() call returns a socket for the session. The socket may be used with the select() call as a read socket. When select() indicates that there is some data to read, call rapi_dispatch() call to read and process the data from the socket. Typically rapi_dispatch() will call user_rapi_callback() to provide the program with information. The user program should only process data from the socket by calling rapi_dispatch().

Return Values and Descriptions

These return values indicate the specific errors for rapi_dispatch():

RAPI_ERR_INVAL

RAPI_ERR_MEMFULL RAPI_ERR_NORSVP

Related Calls


[Back] [Next]