rapi_reserve()

The rapi_reserve() call makes a reservation to be a receiver.

Syntax

#include <rsvprapi.h>

int  rapi_reserve(
       rapi_sid_t         sid,
       int                flag,
       struct sockaddr   *phost,
       rapi_sytleid_t     style,
       rapi_stylex_t     *pstyle,
       rapi_policy_t     *ppolicy,
       int                numFilters,
       rapi_filter_t     *pfilter,
       int                numFlows,
       rapi_flowspec_t   *pflow);

Parameters

sid

flag phost style pstyle ppolicy numFilters pfilter numFlows pflow

Description

The rapi_reserve() call establishes the user of the session as a receiver. It specifies a reservation style and a filterspec array and flowspec array. If there is a previous reservation still in effect, and the rapi_reserve() call specifies a different one, the new reservation replaces the previous one. If the number of flowspecs is 0, the current reservation is deleted but no new reservation is made.

After successfully calling rapi_reserve(), the application callback function can be called with RAPI_RESV_ERROR or RAPI_RESV_CONFIRM events.

There are three reservation styles:

Filterspecs have two formats:

Flowspecs have the following formats:

The flowspec data fields relate to rapi_reserve().

Return Values and Descriptions

RAPI_ERR_BADSID

RAPI_ERR_INVAL RAPI_ERR_OK

Related Calls


[Back: rapi_release()]
[Next: rapi_sender()]