libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ debugserver_client_receive_with_timeout()

debugserver_error_t debugserver_client_receive_with_timeout ( debugserver_client_t  client,
char *  data,
uint32_t  size,
uint32_t *  received,
unsigned int  timeout 
)

Receives raw data using the given debugserver client with specified timeout.

Parameters
clientThe debugserver client to use for receiving
dataBuffer that will be filled with the data received
sizeNumber of bytes to receive
receivedNumber of bytes received (can be NULL to ignore)
timeoutMaximum time in milliseconds to wait for data.
Returns
DEBUGSERVER_E_SUCCESS on success, DEBUGSERVER_E_INVALID_ARG when one or more parameters are invalid, DEBUGSERVER_E_MUX_ERROR when a communication error occurs, or DEBUGSERVER_E_UNKNOWN_ERROR when an unspecified error occurs.