ids_process_msg()

Handle input from a file descriptor (fd)

Synopsis:

#include <ids.h>
 
IDS_API ids_result_t ids_process_msg(int fd)

Since:

BlackBerry 10.2.0

Arguments:

fd

The fd that has changed.

Library:

libids (For the qcc command, use the -l ids option to link against this library)

Description:

This function handles input from a file descriptor (fd) obtained from the ids_add_provider that your app is monitoring. Your app needs to call this function whenever it detects that input is available on any fd returned from the ids_register_provider() function.

Errors The value of errno can be one of the following: ENOMEM: Not enough memory available to process the message.EFAULT: The library has not been initialized.EIO: Problem communicating with the identity provider.EINVAL: An invalid parameter was passed to the function.

Returns:

IDS_SUCCESS if the change was successfully processed. In cases where there are errors, this returns IDS_FAILURE with the errno value set, indicating to your app that the fd is no longer usable. You should re-add any identity providers that were using that fd to your app. The fd should no longer be monitored by your app.