The rapi_session() call starts an RSVP session.
Syntax
#include <rsvprapi.h> #include <netinet\in.h> rapi_sid_t rapi_session( struct sockaddr *pdest, int protoId, int flags, rapi_event_rtn_t caller, void *pClientArg, int *perror);
Parameters
pdest
Description
The rapi_session() call creates an RSVP API session. The session ID is an opaque non-zero value that refers to the session until it is released with rapi_release(). It is not useful to compare session IDs from different processes or from different hosts on the network.
After rapi_session() is successfully called, the application callback function may receive RAPI_PATH_EVENT messages.
Return Values and Descriptions
A non-zero return value is a new session ID which is used as a handle in subsequent calls to the API. A zero return value (NULL_SID) indicates an error, in which case an error code is in the error code variable pointed to by the perror parameter.
If the return code is zero, rapi_session() stores these values in the error code variable:
RAPI_ERR_NORSVP
Related Calls