libimobiledevice  1.3.0-dirty
API Documentation - Return to Homepage

◆ debugserver_client_set_receive_params()

debugserver_error_t debugserver_client_set_receive_params ( debugserver_client_t client,
int(* cancel_receive )(),
int receive_loop_timeout )

Sets behavior when awaiting a response from the server.

See also
debugserver_client_send_command, debugserver_client_receive_response, debugserver_client_receive
Parameters
clientThe debugserver client
cancel_receiveA function pointer that will be called approximately every receive_loop_timeout milliseconds; the function should return a boolean flag specifying whether to stop waiting for a response. If NULL, behaves as if it always returns true.
receive_loop_timeoutTime in milliseconds between calls to cancel_receive.
Returns
DEBUGSERVER_E_SUCCESS on success, or an DEBUGSERVER_E_* error code otherwise.