uds_wait_for_response()

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

Synopsis:

bool uds_wait_for_response(uds_context_t handle, unsigned long timeout)

Arguments:

handle

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

timeout

The timeout period (in milliseconds).

Library:

libunifieddatasourcec

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: 2013-12-21

comments powered by Disqus