rapi_sender()

The rapi_sender() call provides information required to become a sender.

Syntax

       #include <rsvprapi.h>

int  rapi_sender(
       rapi_sid_t          sid,
       int                 flags,
       struct sockaddr    *plocal,
       rapi_filter_t      *pfilter,
       rapi_tspec_t       *ptraffic,
       rapi_adspec_t      *padvert,
       rapi_policy_t      *ppolicy,
       int                 ttl);

Parameters

sid

flags plocal pfilter ptraffic padvent ppolicy ttl

Description

The rapi_sender() call establishes the program as a sender for the specified session. After checking the arguments for validity, this call sends an appropriate message to the destination.

After successfully calling rapi_sender(), the application callback function may receive RAPI_RESV_EVENT or RAPI_PATH_ERROR events.

Return Values and Descriptions

RAPI_ERR_BADSID

RAPI_ERR_INVAL RAPI_ERR_NORSVP RAPI_ERR_NOTSPEC RAPI_ERR_OK

Related Calls


[Back: rapi_reserve()]
[Next: rapi_session()]