uds_wait_for_response()

Wait and block until there is a response from the server or until the specified timeout period elapses.

Synopsis:

#include "bb/pim/unified/unified_data_source.h"
 
bool uds_wait_for_response(uds_context_t handle, unsigned long timeout)

Since:

BlackBerry 10.2.0

Arguments:

handle

The handle that's associated with your app's registration with the BlackBerry Hub.

timeout

The timeout period (in milliseconds).

Library:

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

Description:

This function blocks the current thread and waits for a response from the server about the results of the previous command. You can specify a timeout period, which is the maximum amount of time to block. If a response is received (that is, this function returns true), you can call uds_get_response() to retrieve the response.

Returns:

true if a response is received from the server, false if the timeout period elapses.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus