rapi_getfd - get file descriptor
#include <rapi.h>
int rapi_getfd(rapi_sid_t Sid)
After arapi_session() call has completed successfully and beforerapi_release() has been called, the application may callrapi_getfd() to obtain the file descriptor associated with that session. When a read event is signalled on this file descriptor, the application should callrapi_dispatch() .
- Note:
- Calls to
rapi_getfd() for different RAPI sessions may return the same file descriptor.
- Sid
This parameter must be a session ID returned by a successfulrapi_session() call.
If Sid is illegal or undefined, this call returns -1; otherwise, it returns the file descriptor.
Contents | Next section | Index |